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

Mostrar archivo Open project: EsotericSoftware/spine-runtimes

Public Methods

Method 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 method

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
return void

GetClone() public static method

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
return Skin

GetClonedSkin() public static method

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
return Skin

UnshareSkin() public static method

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
return Skin