Save gameObjects but skip a specific component?

Discussion and help for Easy Save 3
Post Reply
EmanuelBjorsell
Posts: 7
Joined: Fri May 28, 2021 9:11 am

Save gameObjects but skip a specific component?

Post 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
User avatar
Joel
Moodkie Staff
Posts: 4825
Joined: Wed Nov 07, 2012 10:32 pm

Re: Save gameObjects but skip a specific component?

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
EmanuelBjorsell
Posts: 7
Joined: Fri May 28, 2021 9:11 am

Re: Save gameObjects but skip a specific component?

Post by EmanuelBjorsell »

Oh, okay. So the component won't even be added with default values when loaded?
User avatar
Joel
Moodkie Staff
Posts: 4825
Joined: Wed Nov 07, 2012 10:32 pm

Re: Save gameObjects but skip a specific component?

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply