AnimationStateMachine.ForceStateQueuedWithCrossFade(string, float) Method
Definition
Namespace: Brine2D.Animation
Queues the named animation to play with a cross-fade after the current non-looping clip finishes, or immediately if nothing is playing.
C#
public Brine2D.Animation.AnimationStateMachine ForceStateQueuedWithCrossFade(string animationName, float fadeDuration);
Parameters
animationName System.String
fadeDuration System.Single
Returns
Exceptions
System.ArgumentOutOfRangeException
Thrown if fadeDuration is not positive.