Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Yanifska on November 01, 2013, 01:42:07 PM

Title: Prefab:Something(s) weird[SOLVED]
Post by: Yanifska on November 01, 2013, 01:42:07 PM
Hi,

I saved as a new file and opened a previous save. And OMG! all my previous scenes has been updated with the new behavior I just built. Is it normal that a change in a  FSM will affect all the files using that same FSM ? How to save multiple iteration to keep track of the progress and go back to previous save  if needed ?
EDIT : I forgot to say the FSM is on a prefab object.

thanks,
Yaniv
Title: Re: Something(s) weird
Post by: jeanfabre on November 04, 2013, 01:34:34 AM
Hi,

 This is the basic principle of a Prefab. Editing the prefab itself will affect the entire project and all instances of this prefab. Editing only an instance of that prefab is only local and do not affect the rest of the instances nor the original prefab.

 I would NOT/NEVER edit a single instance of a prefab, this is dangerous and never really what you want. Instead prefer, implement a more complex fsm to handle a special case or have a new prefab if the feature is so different.


Saving iterations of your work is best done using a repository like GIT or SVN. I would not start duplicating your prefabs to keep track of things that would pollute your project files for no real benefit.

bye,

 Jean
Title: Re: Something(s) weird
Post by: Yanifska on November 04, 2013, 03:14:55 AM
I though somehow, that the prefab would be saved with the scene. Not as a separate asset. Learning everyday.