Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity check if a animator parameter trigger is activated

bool isPlaying(Animator anim, string stateName)
{
    if (anim.GetCurrentAnimatorStateInfo(animLayer).IsName(stateName) &&
            anim.GetCurrentAnimatorStateInfo(animLayer).normalizedTime < 1.0f)
        return true;
    else
        return false;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: compile in one single exe c# 
Csharp :: how to sort string array alphabetically in c# 
Csharp :: using serial port in c# 
Csharp :: hello world c# 
Csharp :: c# parse the date in DD/MMM/YYYY format 
Csharp :: how do I print something in the console at the start of the game unity 
Csharp :: weighted random c# 
Csharp :: convert string to date in c# 
Csharp :: how to change the color of a sprite in unity 
Csharp :: get 2d rotation from 2 position math 
Csharp :: unity create a child object 
Csharp :: c# filter list 
Csharp :: c# get enum value from string 
Csharp :: asp net c# compare date to current 
Csharp :: convert iformfile to byte array c# 
Csharp :: how to make a mouse down condition in C# 
Csharp :: clear controls from panel c# 
Csharp :: unity destroy after time 
Csharp :: c# remove double quotes from string 
Csharp :: how to store array in c# 
Csharp :: dotnet build command 
Csharp :: C# Unit test IConfiguration 
Csharp :: if in dictionary c# 
Csharp :: if number negative c sharp 
Csharp :: unity how to move an object 
Csharp :: assign color to value in c# 
Csharp :: switch case in c# with multiple values 
Csharp :: c# Get type with namespace 
Csharp :: c# run cmd hidden 
Csharp :: CS0101 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =