Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- [ExecuteInEditMode]
- public class AnimatorPlayer : MonoBehaviour
- {
- // Start is called before the first frame update
- void Start()
- {
- GetComponent<Animator>().Play("NameOfTheAnimation", 0, 0.0f);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement