AnimationStateMachine.AddOnCompleteTransition(string, string, Func, float, int, bool) Method
Definition¶
Namespace: Brine2D.Animation
Adds a transition that fires automatically when the non-looping clip named from reaches its natural end. Returns the created AnimationTransition handle for targeted removal.
public Brine2D.Animation.AnimationTransition AddOnCompleteTransition(string from, string to, System.Func<bool>? condition=null, float crossFadeDuration=0f, int priority=0, bool restartSelf=false);
Parameters¶
from System.String
condition System.Func<System.Boolean>
crossFadeDuration System.Single
priority System.Int32
restartSelf System.Boolean