ドキュメント

Unity Engine

Unity Engine

events

Animation Events for this animation clip.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public AnimationEvent[] events { get; set; }

Remarks

Modified events will only persist until play mode is exited or the player is quit. If you want to add an event to a clip persistently, use AnimationUtility.SetAnimationEvents from the Unity editor.
Additional Resources: AnimationUtility classes.