skeleton:getDrawOrder()

Type: function
See also: skeleton

Overview:


Returns a table of all slot names in the current draw order of this skeleton, as strings.

Syntax:


local slotNames = skeleton:getDrawOrder()

Return value:


table – A table of strings, each representing a slot name.

Example:


local drawOrder = skeleton:getDrawOrder()
for i, name in ipairs(drawOrder) do
     print("Slot name:", name)
end