Search found 24 matches

by Recktardeded
Fri Apr 26, 2024 8:21 pm
Forum: General Discussion
Topic: How can i make a null check for getkeys?
Replies: 2
Views: 26

Re: How can i make a null check for getkeys?

I've updated the asset and now i get a "File does not exist" error before getting the null error, thus i can use es3.fileexists for my intended purporse, thank you!
by Recktardeded
Wed Apr 24, 2024 7:42 pm
Forum: General Discussion
Topic: How can i make a null check for getkeys?
Replies: 2
Views: 26

How can i make a null check for getkeys?

Hello, i would like to use getkeys, to initialize all of my vehicles in a array. The thing is, if there are no saved keys inside the folder i am trying to access i get a null reference error. this is the code i use var keys = ES3.GetKeys(SceneManager.GetActiveScene().name + "_Vehicles.es3"...
by Recktardeded
Sun Apr 14, 2024 1:42 pm
Forum: General Discussion
Topic: How can i save a list of gameobjects?
Replies: 11
Views: 847

Re: How can i save a list of gameobjects?

Thank you for your reply! But i think my script logic is flawed, because it requires multiple floats and enums to get initialized properly on Awake, but i ve decided to use a different approach, where i would save just the floats and whatever other elements i d need for the gameobject, so i would ha...
by Recktardeded
Tue Mar 12, 2024 9:08 am
Forum: General Discussion
Topic: Saving a list of gameobjects with only floats gives errors
Replies: 2
Views: 398

Re: Saving a list of gameobjects with only floats gives errors

I see, i thought you could save multiple variables with the same key. I understand now, thanks!
by Recktardeded
Tue Mar 12, 2024 8:15 am
Forum: General Discussion
Topic: Saving a list of gameobjects with only floats gives errors
Replies: 2
Views: 398

Saving a list of gameobjects with only floats gives errors

Hello, since last week i kept trying to save gameobjects only with a float and their name. I would read the entire list of gameobjects and i would use the gameobject s name to save it as a key.(the main diffrenece between them is the index which is given based on the list, so you would get apple_1,a...
by Recktardeded
Wed Mar 06, 2024 6:55 pm
Forum: General Discussion
Topic: How can i save a list of gameobjects?
Replies: 11
Views: 847

Re: How can i save a list of gameobjects?

Let me clarify, i ve followed the saving of gameobjects tutorial, and it works, it does load the gameobject(mesh, colliders,the needed script,etc), but it does not load the gameobject with the right values as, so that mean i need to simplify the script, but i will simplify it to try to make it work ...
by Recktardeded
Wed Mar 06, 2024 5:48 pm
Forum: General Discussion
Topic: How can i save a list of gameobjects?
Replies: 11
Views: 847

Re: How can i save a list of gameobjects?

Hello, thank you for your Reply! This does not seem to work, but i m thinking of working with a different approach. I am thinking about making a a float that controls the entire plant, and i would save just a list of floats, and each plant would have the name of the gameobject it si referncing so it...
by Recktardeded
Wed Mar 06, 2024 3:44 pm
Forum: General Discussion
Topic: How can i save a list of gameobjects?
Replies: 11
Views: 847

Re: How can i save a list of gameobjects?

I don t think i undestand the saving of gameobjects and the attatched gameobjects fully. I would like to save a list of gameobjects where each gameobject has a mesh(or more), a box collider, a few children as meshes that get enabled dinamically and the script "Plant_Planted" that goes trou...
by Recktardeded
Tue Mar 05, 2024 5:44 pm
Forum: General Discussion
Topic: How can i save a list of gameobjects?
Replies: 11
Views: 847

Re: How can i save a list of gameobjects?

There is a null reference error that is given by a function, but i m preety sure that issue is on my end. I would like to split the current big script in 2 parts: 1. the values of progress and 2. the functionality. Before i continue, the script is about a plant that grows, then makes fruit, and it h...
by Recktardeded
Mon Mar 04, 2024 9:21 am
Forum: General Discussion
Topic: How can i save a list of gameobjects?
Replies: 11
Views: 847

Re: How can i save a list of gameobjects?

Hello, thanks for answering. there is a script i ve made that doesn t reload, but i think i can rework the script to work propely. Also how do i know if a script is serializable? i ve read the docs and they say that it should only include variables such as enums,lists,floats,etc. Right? Also, does a...