Horje
unity animator check if animation is playing Code Example
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;
}
check if animation is playing unity
if (myAnimator.GetCurrentAnimatorStateInfo(0).IsTag("Example"))




Csharp

Related
unity how to load up a scene Code Example unity how to load up a scene Code Example
c# unity get lines Code Example c# unity get lines Code Example
unity check if a animator parameter trigger is activated Code Example unity check if a animator parameter trigger is activated Code Example
convert object to xml c# example code Code Example convert object to xml c# example code Code Example
get client ip address c# Code Example get client ip address c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10