playMaker

Author Topic: AnimationEventToFsmProxy component  (Read 2984 times)

Andy22

  • Junior Playmaker
  • **
  • Posts: 99
AnimationEventToFsmProxy component
« on: January 16, 2014, 09:02:59 AM »
Hi,

not a action, but a proxy component that let Unity Animation events directly communicate/Set FsmVariables, supported are FsmInt, FsmBool, FsmFloat, FsmObject, FsmGameObject.

Just add this component and set a AnimationEvent in the track editor and pick the SetFsmXY() calls.


bye Andy

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: AnimationEventToFsmProxy component
« Reply #1 on: January 24, 2014, 08:02:07 AM »
Hi,

 Where did you find documentation on this? I am curious cause I can't find anything on this.

 How can "SetFsmInt" be called and what is calling it?

bye,

 Jean

Andy22

  • Junior Playmaker
  • **
  • Posts: 99
Re: AnimationEventToFsmProxy component
« Reply #2 on: February 03, 2014, 04:16:13 AM »
Those are just routed animation events nothing special. http://docs.unity3d.com/Documentation/Components/animeditor-AnimationEvents.html

I just found it more usefully to directly modify the fsm variables, in cases where i already have 95% of all logic/code inside playmaker. So creating a proxy component just to hold a single bool/int seemed overkill. This way u can keep all variables inside playmaker and directly modify them.

bye Andy

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: AnimationEventToFsmProxy component
« Reply #3 on: February 03, 2014, 04:50:29 AM »
Hi,

 Very good. Thanks for this.

bye,

 Jean