Skip to content

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

Definition

Namespace: Brine2D.Animation

Adds a transition that can fire from any currently playing animation. Returns the created AnimationTransition handle for targeted removal.

public Brine2D.Animation.AnimationTransition AddAnyTransition(string to, System.Func<bool> condition, bool canInterrupt=true, float crossFadeDuration=0f, float minStateDuration=0f, float minNormalizedTime=0f, int priority=0, bool restartSelf=false);

Parameters

to System.String

condition System.Func<System.Boolean>

canInterrupt System.Boolean

crossFadeDuration System.Single

minStateDuration System.Single

minNormalizedTime System.Single

priority System.Int32

restartSelf System.Boolean

Returns

AnimationTransition