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) 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.

public void PlayQueued(string animationName);

Parameters

animationName System.String