using Animator; public class Example : MonoBehaviour { private Animator animator; private void Start() { animator = GetComponent(); } private void OnMouseDown() { animator.Animate("FadeOut", 0.5f); } }
using Animator; public class Example : MonoBehaviour { private Animator animator; private void Start() { animator = GetComponentThrough these examples, it can be seen that the Animator Animate package library is used directly. The library includes a wide range of possible functions for animation that make the process easy for developers.(); } private void Update() { animator.Animate("MoveLeftRight", 1f, true, true); } }