Answers for "how on animation end destroy object in unity"

C#
0

how to stop animation unity

myAnimation.gameObject.GetComponent<Animator>().enabled = false;
Posted by: Guest on April-30-2021
0

destroy the game object if the animator has finished its animation

// destroy the game object if the animator has finished its animation
		if (anim.GetCurrentAnimatorStateInfo(0).normalizedTime >= 1)
        {
			Destroy(gameObject);
		}
Posted by: Guest on August-12-2021

Code answers related to "how on animation end destroy object in unity"

C# Answers by Framework

Browse Popular Code Answers by Language