Page 1 of 1

Save gameObjects but skip a specific component?

Posted: Fri Sep 24, 2021 2:18 pm
by EmanuelBjorsell
Hi,

I was wondering if it is possible to save a list of gameObjects but skip to save certain components? I'm using Photon as well and I get some problems when loading saved gameObjects that have PhotonView and PhotonTransformView components.

Thanks,
Emanuel

Re: Save gameObjects but skip a specific component?

Posted: Fri Sep 24, 2021 3:43 pm
by Joel
Hi there,

Only Components which are on the Natively-supported types list, or those which have been manually supported using an ES3Type will be serialized by default (see https://docs.moodkie.com/easy-save-3/es ... s-prefabs/).

As Photon classes aren't on the natively-supported types list, they won't be serialized unless you've specified for them to be serialized in the Types panel, or you've manually created an ES3Type script for them.

All the best,
Joel

Re: Save gameObjects but skip a specific component?

Posted: Mon Sep 27, 2021 3:06 pm
by EmanuelBjorsell
Oh, okay. So the component won't even be added with default values when loaded?

Re: Save gameObjects but skip a specific component?

Posted: Mon Sep 27, 2021 8:18 pm
by Joel
The Components will only be added if you’re loading a prefab instance, and the Component belongs to the original prefab.

All the best,
Joel