AddEvent(AnimationEvent)
Adds an animation event to the clip.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AnimationModule
public void AddEvent(AnimationEvent evt)
Parameters
AnimationEvent to add.
Remarks
Note that events added with AddEvent persist until play mode is exited or the is player quit. If you want to add an event to a clip persistently, use AnimationUtility.SetAnimationEvents from the Unity editor.
Additional Resources: AnimationEvent, AnimationUtility classes.