H
H
Herman Coffman2020-05-26 17:51:17
Unity
Herman Coffman, 2020-05-26 17:51:17

How to get the length of the desired animation through the script?

I do like this:

float length = animation.clip.length;
   Debug.Log("LENGTH=" + length );
But I suspect it's wrong. How to get the length of the desired animation correctly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question