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
Save gameObjects but skip a specific component?
-
- Posts: 7
- Joined: Fri May 28, 2021 9:11 am
Re: Save gameObjects but skip a specific component?
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
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
-
- Posts: 7
- Joined: Fri May 28, 2021 9:11 am
Re: Save gameObjects but skip a specific component?
Oh, okay. So the component won't even be added with default values when loaded?
Re: Save gameObjects but skip a specific component?
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
All the best,
Joel