- Home /
Mecanim: get animation duration from Animator state name
I have a base Animator Controller, with different Animator Override Controllers based on that. In C# scripting, I need to get at runtime the duration of the animation associated to a specific Mecanim state. In other words, I need to get the animation length by Mecanim state name (not animation clip name, which could differ in Override Controllers). How can I do it?
Thank you in advance.
Comment
Your answer
Follow this Question
Related Questions
Issue with mecanim playing an animation using setbool 1 Answer
How to use mecanim to play specific animation clips when public static int condition is reached? 2 Answers
What is the proper way to wait for an Animator Controller to update? 1 Answer
Mecanim combo system occasionally stops and registers phantom clicks 0 Answers