- Home /
This question was
closed Nov 14, 2017 at 12:23 PM by
WhisperXD for the following reason:
Problem is not reproducible or outdated
change animation duration into float ??
how can i change the blue line into float ??, so i want to take length from animation then change into float, i was trying for a long time but still not working, so please help me :),,
idle-duration.png
(5.0 kB)
Comment
Answer by Grish_tad · Nov 14, 2017 at 11:00 AM
This will return duration of the first animation clip
GetComponent<Animator>().runtimeAnimatorController.animationClips[0].length