playMaker

Author Topic: Prefab:Something(s) weird[SOLVED]  (Read 1660 times)

Yanifska

  • Full Member
  • ***
  • Posts: 163
    • My Portfolio
Prefab:Something(s) weird[SOLVED]
« 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
« Last Edit: November 04, 2013, 04:43:37 AM by jeanfabre »
Visit my portfolio: http://www.yanivcahoua.com/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Something(s) weird
« Reply #1 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

Yanifska

  • Full Member
  • ***
  • Posts: 163
    • My Portfolio
Re: Something(s) weird
« Reply #2 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.
Visit my portfolio: http://www.yanivcahoua.com/