playMaker

Author Topic: Animation Syncing  (Read 1327 times)

mathius777

  • Playmaker Newbie
  • *
  • Posts: 38
Animation Syncing
« on: September 09, 2015, 07:02:04 PM »
I saw this video on syncing PM with mecanim here:

I downloaded the sample at:https://hutonggames.fogbugz.com/?W1031

And out of the box it does not work. My playmaker states never change, even though the mecanim states are changing.

I am using the latest PM beta, so I thought that might be the cause, but wanted to make sure, as I really want to use this. Thanks.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Animation Syncing
« Reply #1 on: September 10, 2015, 01:26:30 AM »
Hi,

 eh eh :) It's because I rushed this action and it was not supposed to come out before 1.8  ;) and so I had to use code reflection to make it work.

It's ok, there is an easy fix that will be set by default when 1.8 will go out.

you need to comment all lines using
Quote
SwitchState() method
and uncomment all lines using
Quote
Fsm.Fsm.SwitchState
like so:

Quote
//SwitchState(Fsm.Fsm,_fsmState);
// Only in 1.8
Fsm.Fsm.SwitchState(_fsmState);

I have attached the full code if you are allergic to c# :)

I would have done a script that works on both version but unfortunatly, I don't think there isn't any.

 Bye,

 Jean

ps: make sure you use the beta forum instead of the regular forum, as beta matters should remain within the scope of who have access to this otherwise it will confuse users.