Should I use prefabs?

Discussion and help for Easy Save 3
Post Reply
newjohnny
Posts: 12
Joined: Thu Jan 31, 2019 1:00 am

Should I use prefabs?

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

Re: Should I use prefabs?

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