skeleton:getAnimations()

Type: function

Overview:


Returns a table of all animation names defined in the skeleton’s data.

Syntax:


local animations = skeleton:getAnimations()

Return value:


  • table – A table of strings, each representing an animation name.

Example:


local animations = hero:getAnimations()
for i, anim in ipairs(animations) do
    print("Animation:", anim)
end