AnimationClip.AddEventScripting > Runtime Classes > AnimationClipfunction AddEvent (theEvent : AnimationEvent) : voidDescriptionAdds an animation event to the AnimationClip This will add the event until playmode is exited or the player is quit. If you want to add an AnimationEvent to a clip persistently from the editor use UnityEditor.AnimationUtility.SetAnimationEvents. |