文档

Unity Engine

Unity Engine

events

Animation Events for this animation clip.
阅读时间1 分钟最后更新于 2 天前

Definition

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.