- Home /
Question by
Thaina · Sep 04, 2015 at 11:30 AM ·
animationscripting problemanimatorspeed
How can I get animation state speed in code
This value here
untitled-drawing-1.png
(82.6 kB)
Comment
Best Answer
Answer by Thaina · Sep 08, 2015 at 02:15 PM
They just add it in 5.2
http://docs.unity3d.com/ScriptReference/AnimatorStateInfo-speedMultiplier.html
this value is a readonly ,, I can't use that! plus I want to access the speed itself not the multiplier ,,, I want to reverse the animation ,, if I set the multiplier to -1 it will keep playing for ever (even when HasExitTime is true) ,, but If I could access the speed it self it will work perfectly ! . P.S. I'm using Unity 2017.3