Answers for "unity3d animator check if animation has finished with animator component"

C#
0

unity animator check if animation is playing

bool isPlaying(Animator anim, string stateName)
{
    if (anim.GetCurrentAnimatorStateInfo(animLayer).IsName(stateName) &&
            anim.GetCurrentAnimatorStateInfo(animLayer).normalizedTime < 1.0f)
        return true;
    else
        return false;
}
Posted by: Guest on September-23-2020

Code answers related to "unity3d animator check if animation has finished with animator component"

C# Answers by Framework

Browse Popular Code Answers by Language