文档

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.