Summary
[Assert-Only] An event which is triggered whenever a state is played.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerComponent
Syntax
public Action<AnimancerState> OnPlay { get; }
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.
Value
| Type | Description |
|---|---|
| Action |