skeleton:setSkin()

Type: function

Overview:


Sets the skeleton’s current skin to the specified name. This must match a skin defined in Spine.

Syntax:


skeleton:setSkin(skinName)
  • skinName (required):

    string – The name of the skin to apply.

Example:


hero:setSkin("warrior")