Answers for "condition when a animation finishes in unity"

C#
5

condition when a animation finishes in unity

if(anim.GetCurrentAnimatorStateInfo(0).normalizedTime > 1){  //If normalizedTime is 0 to 1 means animation is playing, if greater than 1 means finished
   Debug.Log("not playing"); 
 }
 else{  
      Debug.Log("playing");
 }
Posted by: Guest on June-10-2020

Code answers related to "condition when a animation finishes in unity"

C# Answers by Framework

Browse Popular Code Answers by Language