play

public boolean play(String name, boolean blend, boolean loop)

Plays a built-in state (idle, walk, spawn, death), an attack, or any animation by name.

Return

true if the animation exists and was accepted

Parameters

name

the animation name

blend

for custom animations: true layers it over the base, false takes the whole pose over

loop

for custom animations: whether it loops