- Home /
Question by
jawad111ahmad · Apr 03 at 05:02 AM ·
animationscript.
Change animation exit time
Hello friends is it possible to change the animation exit time using script. @JawadAhmad0
Comment
Answer by SurreyMuso · Apr 03 at 12:59 PM
Yes it is.
https://docs.unity3d.com/ScriptReference/Animations.AnimatorStateTransition-exitTime.html
Two things, though:
1) You must have hasExitTime set to true for it to work 2) State must have run once for exitTime = 0 to work