today ive tried to implement a save and load function to my script. It works just fine with floats int doubles etc. but when it comes to gameobjects it gets tricky as far as i have read on couple of website.
My gameobjects gets instantiated constantly in a grid. All gameobjects also gets saved in a list.
Is it possible to save the list and when the app starts again, to load the gameobjects from the list into the grid again?
are you using .Net serialiser? because Unity objects can get used with it. I save the gameObjects name mostly and load it from the resource folder when needed…
i watched the unity persistence Saving and loading data video and used his method. I have no clue what .Net serialiser is. I have to look into it when i can.
Thank you
EDIT: I think i just thought of an easier solution to my problem. I just save an integer of how many times the GO are instantiated into the grid. When the script/app starts again it runs the times of the integer throught the instantiate cycle again.