Playmaker Forum
Bug Reporting => PlayMaker Bug Reporting => Topic started by: Teknopathetic on June 27, 2011, 03:57:14 PM
-
Hi there, I'm noticing Playmaker having trouble playing really short animation clips made in the Unity animation editor. I have a scene with a capsule and a cube parented to the capsule with an FSM on the capsule that has just a starting idle state, then on pressing a button transitions to a second state where an animation of the cube moving is played and then on completion goes back to the initial state. When I have the animation clip shorter than 0:20, the animation won't play at all and the FSM essentially hangs on the second state, because it doesn't finish and fire the event to go back to the first. If I change the animation so that it is 0:20 or longer, the animation plays properly and triggers the event to go back to the first state. The shorter animation does play properly if I play it through code, just not when I attempt to play it with a Playmaker action.
Edit: To clarify, this does not seem to change no matter what wrap mode you select. Also, if you the animation is longer than 0:20 but you increase the speed at which it plays with the animation settings action, it still won't play.
-
Hi,
Make sure you test this in a published version. The editor slows down and affect the performances quit a lot.
Or test with nothing in your layout but the game view. That also could unleash more perfs.
Bye,
Jean
-
Make sure your animation blend time is set to a lesser number than the length of your animation clip, or else its going to try and blend for a longer time than the clip, and it will appear like its not even playing or give you errors like you are describing.
give the play animation action a value of 0.0 for the blend time and it should work fine.
-
Ah, yeah, the blend time was it. Thanks for the help, guys.