AddEvent(AnimationEvent)
Adds an animation event to the clip.
읽는 시간 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.