playMaker

Author Topic: linked instances of a FSM ?  (Read 3396 times)

giordano

  • 1.2 Beta
  • Playmaker Newbie
  • *
  • Posts: 4
linked instances of a FSM ?
« on: July 17, 2011, 04:47:05 AM »
Sorry if I have missed something in the Docs, but I have a FSM that is a component on several different prefabs. Is there a way of creating a "master" FSM that I would edit and whose edits are reflected in each of its instances? (In the same way that if I have a single script attached to a number of Game Objects, when I edit the script it is updated in all of its instances)

cheers

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: linked instances of a FSM ?
« Reply #1 on: July 17, 2011, 05:30:00 AM »
Hi,

 Could you maybe have this fsm in its own prefab that in turn is used in other prefabs? that's how I would try to get around this.

 Bye,

 Jean

giordano

  • 1.2 Beta
  • Playmaker Newbie
  • *
  • Posts: 4
Re: linked instances of a FSM ?
« Reply #2 on: July 17, 2011, 06:11:38 AM »
unfortunately Unity does not support nested prefabs so this would not work... which is a shame as it would be an ideal solution otherwise..

tobbeo

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 186
Re: linked instances of a FSM ?
« Reply #3 on: July 17, 2011, 08:10:26 AM »
Well I think global variables will be implemented at some point and I think that will solve a lot of these types of situations. I guess being able to have an instance of an FSM across several gameobjects where if one instance is updated all the other ones are too would be cool.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: linked instances of a FSM ?
« Reply #4 on: July 17, 2011, 08:28:42 AM »
Uhm, did not know about the impossibility to nest prefabs... not good.

 Bye,

Jean