Skip to content

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

Definition

Namespace: Brine2D.Animation

Adds a transition from one named animation to another. Returns the created AnimationTransition handle for targeted removal.

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

Parameters

from System.String

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