Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: giordano on July 17, 2011, 04:47:05 AM

Title: linked instances of a FSM ?
Post by: giordano 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
Title: Re: linked instances of a FSM ?
Post by: jeanfabre 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
Title: Re: linked instances of a FSM ?
Post by: giordano 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..
Title: Re: linked instances of a FSM ?
Post by: tobbeo 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.
Title: Re: linked instances of a FSM ?
Post by: jeanfabre on July 17, 2011, 08:28:42 AM
Uhm, did not know about the impossibility to nest prefabs... not good.

 Bye,

Jean