Skip to content

SpriteAnimator.PlayQueued(string) Method

Definition

Namespace: Brine2D.Animation

Queues an animation to play after the current non-looping clip finishes \(or immediately if nothing is playing\). Multiple calls append to the queue; animations play in order. Indefinitely-looping clips \(no [RepeatCount](../AnimationClip/RepeatCount.md 'Brine2D\.Animation\.AnimationClip\.RepeatCount')\) cannot be queued behind because they never complete; a warning is logged and the call is ignored. The queue depth is capped at MaxQueueDepth; attempts to exceed it are ignored with a warning.

C#
public void PlayQueued(string animationName);

Parameters

animationName System.String