AnimationClip.AddEvent

Switch to Manual

Declaration

public void AddEvent(AnimationEvent evt);

Parameters

evt AnimationEvent to add.

Description

Adds an animation event to the clip.

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.


Did you find this page useful? Please give it a rating: