Answers for "unity stop object from resetting after animation"

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
0

reset animator unity

animator.Play("anim", -1, 0f);
Posted by: Guest on August-16-2020

C# Answers by Framework

Browse Popular Code Answers by Language