Page 1 of 1

Should I use prefabs?

Posted: Tue Apr 26, 2022 5:07 am
by newjohnny
My game is a single scene so I've been instantiating a pre-existing gameobject rather than a prefab to avoid creating huge numbers of scene references on awake.

Now that I'm setting up Easy Save, I have discovered I need to recreate the entire clone from scratch, rather than just loading and modifying a prefab. Worse, I am not able to serialize some things like particles and textmesh pro components.

If I change my scene to instantiate prefabs instead, will Easy Save gracefully handle unsupported components, assuming I don't need to change them? I am using autosave exclusively.

Re: Should I use prefabs?

Posted: Tue Apr 26, 2022 7:37 am
by Joel
Hi there,

When using prefabs, unsupported components will still be instantiated with the prefab but their fields will not be saved or loaded. In most cases this is preferable to the Components not existing at all.

All the best,
Joel