Skip to content

AnimationStateMachine.SetDefaultState(string) Method

Definition

Namespace: Brine2D.Animation

Sets the animation that plays automatically when the animator has no active animation, or when a non-looping clip finishes and no transition fires. Pass null to clear the default state.

public Brine2D.Animation.AnimationStateMachine SetDefaultState(string? animationName);

Parameters

animationName System.String

Returns

AnimationStateMachine