Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity detect if animation is playing

if(this.GetComponent<Animator>().GetCurrentAnimatorStateInfo(0).normalizedTime >= 1)
{
	//Do something when animator isn't playing
{
Comment

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;
}
Comment

check if animation is playing unity

if (myAnimator.GetCurrentAnimatorStateInfo(0).IsTag("Example"))
Comment

PREVIOUS NEXT
Code Example
Csharp :: asp.net core 3.1 ajax partial view 
Csharp :: how to make panel scrollable c# 
Csharp :: how to allow user import image c# 
Csharp :: c# unity get name of object 
Csharp :: unity log warning 
Csharp :: convert object to array in c# 
Csharp :: vb.net console log 
Csharp :: C# decimal with two places store as string with two places 
Csharp :: how delete multiple row from relation in laravel 
Csharp :: c# encode jpg hiight quality 
Csharp :: c# how to sort a list 
Csharp :: c# datagridview selected row index 
Csharp :: total months between two dates c# 
Csharp :: selection sort in c# 
Csharp :: last two characters of string c# 
Csharp :: what does static mean in c# 
Csharp :: c# get char from string 
Csharp :: 2 rotation unity 
Csharp :: doing void when gameobject setactive unity 
Csharp :: string list to object array in c# 
Csharp :: turn list of string to csv c# 
Csharp :: project mongodb c# 
Csharp :: split string on last element 
Csharp :: c# get application root path directory 
Csharp :: wpf messagebox result 
Csharp :: c# do while 
Csharp :: get property value from object c# 
Csharp :: how to know character is a digit or not in c# 
Csharp :: nunjucks index in loop 
Csharp :: unity get center of object 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =