SpriteAnimator.PlayWithCrossFade(string, float, bool) Method
Definition¶
Namespace: Brine2D.Animation
Plays an animation by name with a cross-fade over fadeDuration seconds.
public void PlayWithCrossFade(string animationName, float fadeDuration, bool restart=false);
Parameters¶
animationName System.String
fadeDuration System.Single
restart System.Boolean
Exceptions¶
System.ArgumentOutOfRangeException
Thrown if fadeDuration is not positive.