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

Afficher le fichier Open project: EsotericSoftware/spine-runtimes

Méthodes publiques

Méthode 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

Méthode Description
CloneVertexAttachment ( VertexAttachment src, VertexAttachment dest ) : void

Method Details

GetClone() public static méthode

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

GetClone() public static méthode

public static GetClone ( this o ) : BoundingBoxAttachment
o this
Résultat BoundingBoxAttachment

GetClone() public static méthode

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
Résultat MeshAttachment

GetClone() public static méthode

public static GetClone ( this o ) : PathAttachment
o this
Résultat PathAttachment

GetClone() public static méthode

public static GetClone ( this o ) : RegionAttachment
o this
Résultat RegionAttachment

GetLinkedClone() public static méthode

public static GetLinkedClone ( this o, bool inheritDeform = true ) : MeshAttachment
o this
inheritDeform bool
Résultat MeshAttachment

GetLinkedMesh() public static méthode

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
Résultat MeshAttachment

GetLinkedMesh() public static méthode

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
Résultat MeshAttachment