Skip to content

AnimationStateMachine.ForceStateWithCrossFade(string, float, bool) Method

Definition

Namespace: Brine2D.Animation

Imperatively drives the state machine to the named animation with a cross-fade.

public Brine2D.Animation.AnimationStateMachine ForceStateWithCrossFade(string animationName, float fadeDuration, bool restart=false);

Parameters

animationName System.String

fadeDuration System.Single

restart System.Boolean

Returns

AnimationStateMachine