C# Class tk2dSprite, Malisse

Inheritance: tk2dBaseSprite
Exibir arquivo Open project: Collegiennes/Malisse Class Usage Examples

Public Methods

Method Description
AddComponent ( GameObject go, tk2dSpriteCollectionData, spriteCollection, int spriteId ) : tk2dSprite,

Adds a tk2dSprite as a component to the gameObject passed in, setting up necessary parameters and building geometry. Convenience alias of tk2dBaseSprite.AddComponent(...).

Build ( ) : void
CreateFromTexture ( Texture2D texture, tk2dRuntime size, Rect region, Vector2 anchor ) : GameObject

Create a sprite (and gameObject) displaying the region of the texture specified. Use tk2dSpriteCollectionData.CreateFromTexture if you need to create a sprite collection with multiple sprites. Convenience alias of tk2dBaseSprite.CreateFromTexture(...)

ForceBuild ( ) : void

Protected Methods

Method Description
GetCurrentVertexCount ( ) : int
OnDestroy ( ) : void
UpdateColors ( ) : void
UpdateColorsImpl ( ) : void
UpdateGeometry ( ) : void
UpdateGeometryImpl ( ) : void
UpdateMaterial ( ) : void
UpdateVertices ( ) : void
UpdateVerticesImpl ( ) : void

Private Methods

Method Description
Awake ( ) : void

Method Details

AddComponent() public static method

Adds a tk2dSprite as a component to the gameObject passed in, setting up necessary parameters and building geometry. Convenience alias of tk2dBaseSprite.AddComponent(...).
public static AddComponent ( GameObject go, tk2dSpriteCollectionData, spriteCollection, int spriteId ) : tk2dSprite,
go GameObject
spriteCollection tk2dSpriteCollectionData,
spriteId int
return tk2dSprite,

Build() public method

public Build ( ) : void
return void

CreateFromTexture() public static method

Create a sprite (and gameObject) displaying the region of the texture specified. Use tk2dSpriteCollectionData.CreateFromTexture if you need to create a sprite collection with multiple sprites. Convenience alias of tk2dBaseSprite.CreateFromTexture(...)
public static CreateFromTexture ( Texture2D texture, tk2dRuntime size, Rect region, Vector2 anchor ) : GameObject
texture UnityEngine.Texture2D
size tk2dRuntime
region Rect
anchor Vector2
return GameObject

ForceBuild() public method

public ForceBuild ( ) : void
return void

GetCurrentVertexCount() protected method

protected GetCurrentVertexCount ( ) : int
return int

OnDestroy() protected method

protected OnDestroy ( ) : void
return void

UpdateColors() protected method

protected UpdateColors ( ) : void
return void

UpdateColorsImpl() protected method

protected UpdateColorsImpl ( ) : void
return void

UpdateGeometry() protected method

protected UpdateGeometry ( ) : void
return void

UpdateGeometryImpl() protected method

protected UpdateGeometryImpl ( ) : void
return void

UpdateMaterial() protected method

protected UpdateMaterial ( ) : void
return void

UpdateVertices() protected method

protected UpdateVertices ( ) : void
return void

UpdateVerticesImpl() protected method

protected UpdateVerticesImpl ( ) : void
return void