Skip to content

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

Definition

Namespace: Brine2D.Animation

Adds an on-complete transition from from to to that additionally requires the named trigger to be armed, consuming it safely on fire. Returns the created AnimationTransition handle for targeted removal.

C#
public Brine2D.Animation.AnimationTransition AddOnCompleteTriggerTransition(string from, string to, Brine2D.Animation.AnimationParameters parameters, string triggerName, float crossFadeDuration=0f, int priority=0, bool restartSelf=false);

Parameters

from System.String

to System.String

parameters AnimationParameters

triggerName System.String

crossFadeDuration System.Single

priority System.Int32

restartSelf System.Boolean

Returns

AnimationTransition