Answers for "how to destroy object after animation unity"

C#
1

destroy after animation unity

public class DestroyOnExit : StateMachineBehaviour {    public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) {        Destroy(animator.gameObject, stateInfo.length);    }}
//for more info: https://answers.unity.com/questions/670860/delete-object-after-animation-2d.html
Posted by: Guest on June-22-2021

Code answers related to "how to destroy object after animation unity"

C# Answers by Framework

Browse Popular Code Answers by Language