EventUtilities.

LogCurrentEvent Field

Summary

Logs a message with the details of the Animancer.AnimancerEvent.CurrentEvent and Animancer.AnimancerEvent.CurrentState.
Assembly
Animancer.dll
Namespace
Animancer.Examples.Events
Containing Type
EventUtilities

Syntax

public static readonly Action LogCurrentEvent

Examples

Go through every event in a transition and make it Log the event in addition to its normal callback:

[SerializeField] private ClipTransition _Transition;

private void Awake()
{
    for (int i = 0; i < _Transition.Events.Count; i++)
    {
        _Transition.Events.AddCallback(i, EventUtilities.LogCurrentEvent);
    }
}