Skin class
Stores attachments by slot index and attachment name.
Skins constructed manually via the Skin(String name)
constructor must be manually disposed via the dipose
method if they
are no longer used.
See SkeletonData.defaultSkin
, [Skeleton.getSkin}, and Runtime skins in the
Spine Runtimes Guide.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
-
copy(
Skin other) → void - Adds all bones and constraints and copies of all attachments from the specified skin to this skin. Mesh attachments are not copied, instead a new linked mesh is created. The attachment copies can be modified without affecting the originals.
-
dispose(
) → void - Diposes this skin.
-
getAttachment(
int slotIndex, String name) → Attachment< Pointer< ?NativeType> > - Returns the attachment for the specified slot index and name, or null.
-
getBones(
) → List< BoneData> -
getConstraints(
) → List< ConstraintData< Pointer< >NativeType> > -
getEntries(
) → List< SkinEntry> - Returns all entries in this skin.
-
getName(
) → String - The skin's name, which is unique across all skins in the skeleton.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAttachment(
int slotIndex, String name) → void - Removes the attachment in the skin for the specified slot index and name, if any.
-
setAttachment(
int slotIndex, String name, Attachment< Pointer< ? attachment) → voidNativeType> > - Adds an attachment to the skin for the specified slot index and name.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited