Skip to content

AnimationStateMachine.OnStateExit(string, Action) Method

Definition

Namespace: Brine2D.Animation

Registers a callback to invoke whenever the named state is exited. The callback receives the name of the state being entered next, or null when the animator is stopped rather than transitioning to another state. Multiple callbacks per state are supported.

public Brine2D.Animation.AnimationStateMachine OnStateExit(string stateName, System.Action<string?> callback);

Parameters

stateName System.String

callback System.Action<System.String>

Returns

AnimationStateMachine