condition when a animation finishes in unity code example
Example: 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");
}