skeleton.bones¶
Overview¶
An array of bone objects, each controlling the transform (position, rotation, scale) of a skeleton’s structure.
Example¶
local spine = require("plugin.spine43")
local atlas = spine.loadAtlas("spineboy.atlas")
local skeletonData = spine.loadSkeletonData("spineboy.skel", atlas)
local spineboy = spine.create(skeletonData)
-- Iterate bones and print their names
for i, bone in ipairs(spineboy.bones) do
print("Bone:", i, "Name:", bone.name)
end