Skip to content

AnimationStateMachine.AddAnyOnCompleteTransition(string, Func, float, int, bool) Method

Definition

Namespace: Brine2D.Animation

Adds a transition that fires automatically when any non-looping clip reaches its natural end. Returns the created AnimationTransition handle for targeted removal.

public Brine2D.Animation.AnimationTransition AddAnyOnCompleteTransition(string to, System.Func<bool>? condition=null, float crossFadeDuration=0f, int priority=0, bool restartSelf=false);

Parameters

to System.String

condition System.Func<System.Boolean>

crossFadeDuration System.Single

priority System.Int32

restartSelf System.Boolean

Returns

AnimationTransition