Skip to content

AnimationStateMachine.ForceStateDirectQueuedWithCrossFade(AnimationClip, float) Method

Definition

Namespace: Brine2D.Animation

Queues a clip instance to play directly with a cross-fade after the current non-looping clip finishes, or immediately if nothing is playing. The clip does not need to be pre-registered.

public Brine2D.Animation.AnimationStateMachine ForceStateDirectQueuedWithCrossFade(Brine2D.Animation.AnimationClip clip, float fadeDuration);

Parameters

clip AnimationClip

fadeDuration System.Single

Returns

AnimationStateMachine

Exceptions

System.ArgumentOutOfRangeException
Thrown if fadeDuration is not positive.