I'm a little newbie and I have a question that is very basic but I have not been able to find it in the forum.
In my project, I have a parent GameObject in my scene that contains scripts + transform + sprite renderer. This GameObject has children of the same type.
According to the player's actions, some public values of some GameObject components change (public vars in c# scripts).
I want to save this GameObject parent with the changes in its components and load it again when the player returns and continue his game.
I tried this:
Code: Select all
GameObject mapita;
mapita = GameObject.Find("Rooms Map Intro");
ES3.Save<GameObject>( "mapa_pruebas_00", mapita );
Someone can helpme?
Thanks for your time.