AnimationStateMachine.AddTriggerTransition(string, string, AnimationParameters, string, bool, float, float, float, int, bool) Method
Definition¶
Namespace: Brine2D.Animation
Adds a transition from from to to that fires when the named trigger is armed, consuming it via OnFired. Returns the created AnimationTransition handle for targeted removal.
public Brine2D.Animation.AnimationTransition AddTriggerTransition(string from, string to, Brine2D.Animation.AnimationParameters parameters, string triggerName, bool canInterrupt=false, float crossFadeDuration=0f, float minStateDuration=0f, float minNormalizedTime=0f, int priority=0, bool restartSelf=false);
Parameters¶
from 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