C# Class Spine.Unity.Modules.AttachmentTools.SkinExtensions

Afficher le fichier Open project: EsotericSoftware/spine-runtimes

Méthodes publiques

Méthode Description
CopyTo ( this source, Skin destination, bool overwrite, bool cloneAttachments, bool cloneMeshesAsLinked = true ) : void
GetClone ( this original ) : Skin

Gets a shallow copy of the skin. The cloned skin's attachments are shared with the original skin.

GetClonedSkin ( this skeleton, string newSkinName, bool includeDefaultSkin = false, bool cloneAttachments = false, bool cloneMeshesAsLinked = true ) : Skin
UnshareSkin ( this skeleton, bool includeDefaultSkin, bool unshareAttachments, AnimationState state = null ) : Skin

Convenience method for duplicating a skeleton's current active skin so changes to it will not affect other skeleton instances. .

Method Details

CopyTo() public static méthode

public static CopyTo ( this source, Skin destination, bool overwrite, bool cloneAttachments, bool cloneMeshesAsLinked = true ) : void
source this
destination Skin
overwrite bool
cloneAttachments bool
cloneMeshesAsLinked bool
Résultat void

GetClone() public static méthode

Gets a shallow copy of the skin. The cloned skin's attachments are shared with the original skin.
public static GetClone ( this original ) : Skin
original this
Résultat Skin

GetClonedSkin() public static méthode

public static GetClonedSkin ( this skeleton, string newSkinName, bool includeDefaultSkin = false, bool cloneAttachments = false, bool cloneMeshesAsLinked = true ) : Skin
skeleton this
newSkinName string
includeDefaultSkin bool
cloneAttachments bool
cloneMeshesAsLinked bool
Résultat Skin

UnshareSkin() public static méthode

Convenience method for duplicating a skeleton's current active skin so changes to it will not affect other skeleton instances. .
public static UnshareSkin ( this skeleton, bool includeDefaultSkin, bool unshareAttachments, AnimationState state = null ) : Skin
skeleton this
includeDefaultSkin bool
unshareAttachments bool
state UnityEngine.AnimationState
Résultat Skin