Answers for "how to check whether animator animation is complete unity"

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 "how to check whether animator animation is complete unity"

C# Answers by Framework

Browse Popular Code Answers by Language