D
D
Dmitry Korolev2017-03-08 19:25:50
C++ / C#
Dmitry Korolev, 2017-03-08 19:25:50

How to find out that no more animation is played in the animator?

I need to write the if in which the bool is playing the animation in the animator at the moment

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pparma, 2017-03-08
@adressmoeistranici

Try like this:

animator.GetCurrentAnimatorStateInfo(0).length > animator.GetCurrentAnimatorStateInfo(0).normalizedTime;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question