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

显示文件 Open project: EsotericSoftware/spine-runtimes

Public Methods

Method Description
GetClone ( this o, bool cloneMeshesAsLinked ) : Attachment

Clones the attachment.

GetClone ( this o ) : BoundingBoxAttachment
GetClone ( this o ) : MeshAttachment

Returns a clone of the MeshAttachment. This will cause Deform animations to stop working unless you explicity set the .parentMesh to the original.

GetClone ( this o ) : PathAttachment
GetClone ( this o ) : RegionAttachment
GetLinkedClone ( this o, bool inheritDeform = true ) : MeshAttachment
GetLinkedMesh ( this o, Sprite sprite, Shader shader, bool inheritDeform = true ) : MeshAttachment

Returns a new linked mesh linked to this MeshAttachment. It will be mapped to an AtlasRegion generated from a Sprite. The AtlasRegion will be mapped to a new Material based on the shader. For better caching and batching, use GetLinkedMesh(string, AtlasRegion, bool)

GetLinkedMesh ( this o, string newLinkedMeshName, AtlasRegion region, bool inheritDeform = true ) : MeshAttachment

Returns a new linked mesh linked to this MeshAttachment. It will be mapped to the AtlasRegion provided.

Private Methods

Method Description
CloneVertexAttachment ( VertexAttachment src, VertexAttachment dest ) : void

Method Details

GetClone() public static method

Clones the attachment.
public static GetClone ( this o, bool cloneMeshesAsLinked ) : Attachment
o this
cloneMeshesAsLinked bool
return Attachment

GetClone() public static method

public static GetClone ( this o ) : BoundingBoxAttachment
o this
return BoundingBoxAttachment

GetClone() public static method

Returns a clone of the MeshAttachment. This will cause Deform animations to stop working unless you explicity set the .parentMesh to the original.
public static GetClone ( this o ) : MeshAttachment
o this
return MeshAttachment

GetClone() public static method

public static GetClone ( this o ) : PathAttachment
o this
return PathAttachment

GetClone() public static method

public static GetClone ( this o ) : RegionAttachment
o this
return RegionAttachment

GetLinkedClone() public static method

public static GetLinkedClone ( this o, bool inheritDeform = true ) : MeshAttachment
o this
inheritDeform bool
return MeshAttachment

GetLinkedMesh() public static method

Returns a new linked mesh linked to this MeshAttachment. It will be mapped to an AtlasRegion generated from a Sprite. The AtlasRegion will be mapped to a new Material based on the shader. For better caching and batching, use GetLinkedMesh(string, AtlasRegion, bool)
public static GetLinkedMesh ( this o, Sprite sprite, Shader shader, bool inheritDeform = true ) : MeshAttachment
o this
sprite UnityEngine.Sprite
shader UnityEngine.Shader
inheritDeform bool
return MeshAttachment

GetLinkedMesh() public static method

Returns a new linked mesh linked to this MeshAttachment. It will be mapped to the AtlasRegion provided.
public static GetLinkedMesh ( this o, string newLinkedMeshName, AtlasRegion region, bool inheritDeform = true ) : MeshAttachment
o this
newLinkedMeshName string
region AtlasRegion
inheritDeform bool
return MeshAttachment