Saving parent GameObject and its children

Discussion and help for Easy Save 3
Post Reply
Aenah
Posts: 1
Joined: Wed Mar 07, 2018 8:52 am

Saving parent GameObject and its children

Post by Aenah »

Good Morning.

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 );

But then I get this error: ArgumentException: Only types of UnityEngine.Component can be written with this method, but argument given is type of UnityEngine.Transform

Someone can helpme?

Thanks for your time.
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Saving parent GameObject and its children

Post by Joel »

Hi there,

We're aware of this bug and it will be fixed in the next update. In the meantime if you PM me your invoice number, I'll send you the update right away.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
reynanuy
Posts: 5
Joined: Fri Mar 30, 2018 6:56 pm

Re: Saving parent GameObject and its children

Post by reynanuy »

Hi. I had the same problem as the OP, so I sent you a PM Joel as instructed, to get that fix. Thanks in advance!
Post Reply