AnimationEvent Class  

Scripting > Runtime Classes > AnimationEvent

AnimationEvent lets you call a script function similar to SendMessage as part of playing back an animation.

Variables
data

The string data that is stored in the animation clip and will be sent to the animation event.

functionName

The name of the function that will be called.

time

The time at which the event will be fired off

messageOptions

if options is set to SendMessageOptions.RequireReceiver (default), an error is printed when the message is not picked up by any component.

animationState

The Animation state that fired this event.

Constructors
AnimationEvent

Creates a new animation event