Hello, I’m trying to make a direct control over animation playback using StateMachineBehavior, attached to said state.
The only really working way to do that I found is to change float parameter, that is set as MotionTime of said state. Calling Play freezes the animator for some reason, and using extension method SetTime and SetLeadTime do nothing at all.
Problem is - I need to set float for MotionTime at StateBegin, BUT it gets applied only on the next frame, so I get weird visual bugs.
Is there a better way to control current state’s time from StateMachineBehavior?