Skin class
Stores attachments by slot index and attachment name. See SkeletonData::getDefaultSkin, Skeleton::getSkin, and http://esotericsoftware.com/spine-runtime-skins in the Spine Runtimes Guide.
- Available extensions
Constructors
- Skin(String name)
- 
          
            factory
- 
          Skin.fromPointer(Pointer<spine_skin_wrapper> _ptr)
Properties
- bones → ArrayBoneData
- 
  
  no setter
- color → Color
- 
  
  no setter
- constraints → ArrayConstraintData
- 
  
  no setter
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- name → String
- 
  
  no setter
- 
  nativePtr
  → Pointer<NativeType> 
- 
  Get the native pointer for FFI calls
  no setter
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  addSkin(Skin other) → void 
- Adds all attachments, bones, and constraints from the specified skin to this skin.
- 
  copySkin(Skin other) → void 
- Adds all attachments, bones, and constraints from the specified skin to this skin. Attachments are deep copied.
- 
  dispose() → void 
- 
  findAttachmentsForSlot(int slotIndex, ArrayAttachment attachments) → void 
- Finds the attachments for a given slot. The results are added to the passed array of Attachments.
- 
  getAttachment(int slotIndex, String name) → Attachment? 
- Returns the attachment for the specified slot index and name, or NULL.
- 
  getEntries() → List< SkinEntry> 
- 
      Available on Skin, provided by the SkinExtensions extension Get all entries (slot/attachment pairs) in this skin
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  removeAttachment(int slotIndex, String name) → void 
- Removes the attachment from the skin.
- 
  setAttachment(int slotIndex, String name, Attachment? attachment) → void 
- Adds an attachment to the skin for the specified slot index and name. If the name already exists for the slot, the previous value is replaced.
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited