AnimancerGraph.

OnPlay Field

Summary

[Assert-Only] An event which is triggered whenever a state is played.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
AnimancerGraph

Syntax

public Action<AnimancerState> OnPlay

Remarks

Some useful methods for this event are Animancer.AnimancerState.LogPlayingMessage(Animancer.AnimancerState) and Animancer.AnimancerState.LogPlayingMessageDetailed(Animancer.AnimancerState).

By default, this event only exists in the Unity Editor and in Development Builds. To enable it in regular Release Builds, go to Edit -> Project Settings -> Player -> Other Settings -> Scripting Define Symbols and add ANIMANCER_ON_PLAY_EVENTS to the list.