Module flower.spine.Slot

Functions

Slot:init (slotData, skeleton) The constructor.
Slot:setBone (bone) Attach slot to a bone
Slot:setAttachment (attachment) Set attachment for a slot
Slot:setToBindPose () Reset slot data to initial values


Functions

Slot:init (slotData, skeleton)
The constructor.

Parameters:

  • slotData slot parameters table. Fields: (name, bone, color, attachment)
  • skeleton skeleton object
Slot:setBone (bone)
Attach slot to a bone

Parameters:

  • bone bone object
Slot:setAttachment (attachment)
Set attachment for a slot

Parameters:

  • attachment attachment object
Slot:setToBindPose ()
Reset slot data to initial values
generated by LDoc 1.3