Skip to content

AnimationStateMachine.AddAnyTriggerTransition(string, AnimationParameters, string, bool, float, float, float, int, bool) Method

Definition

Namespace: Brine2D.Animation

Adds an AnyState transition to to that fires when the named trigger is armed, consuming it safely via OnFired. Returns the created AnimationTransition handle for targeted removal.

public Brine2D.Animation.AnimationTransition AddAnyTriggerTransition(string to, Brine2D.Animation.AnimationParameters parameters, string triggerName, bool canInterrupt=true, float crossFadeDuration=0f, float minStateDuration=0f, float minNormalizedTime=0f, int priority=0, bool restartSelf=false);

Parameters

to System.String

parameters AnimationParameters

triggerName System.String

canInterrupt System.Boolean

crossFadeDuration System.Single

minStateDuration System.Single

minNormalizedTime System.Single

priority System.Int32

restartSelf System.Boolean

Returns

AnimationTransition