How to save & load a game object along its components?

Discussion and help for Easy Save 3
Post Reply
88888888
Posts: 20
Joined: Tue Sep 10, 2019 10:41 pm

How to save & load a game object along its components?

Post by 88888888 »

How to save & load a game objects along its components and scripts? I'm using ES3.

Also I need to save and load scripts that is on the object's children too.

User avatar
Joel
Moodkie Staff
Posts: 2829
Joined: Wed Nov 07, 2012 10:32 pm

Re: How to save & load a game object along its components?

Post by Joel »

Hi there,

That is covered here: https://docs.moodkie.com/easy-save-3/es ... s-prefabs/

You can check the Save GameObject Children option in Window > Easy Save 3 > Settings to ensure that children are saved.

All the best,
Joel
Joel @ Moodkie Interactive
Twitter - Unity

88888888
Posts: 20
Joined: Tue Sep 10, 2019 10:41 pm

Re: How to save & load a game object along its components?

Post by 88888888 »

Thanks. Just is that possible to add "Enable Easy Save for Prefab" automatically in runtime with a playmaker action or something? in case we going to create a random prefab in runtime and we can't right click and select "Enable Easy Save for Prefab" on there?

User avatar
Joel
Moodkie Staff
Posts: 2829
Joined: Wed Nov 07, 2012 10:32 pm

Re: How to save & load a game object along its components?

Post by Joel »

The prefab must be enabled for Easy Save prior to runtime, as it's not possible to add components to source assets at runtime, and the reference manager will not be able to get a reference to it.

All the best,
Joel
Joel @ Moodkie Interactive
Twitter - Unity

Post Reply