tk2dStaticSpriteBatcher Class Reference

Static sprite batcher builds a collection of sprites, textmeshes into one static mesh for better performance. More...

Inherits tk2dRuntime.ISpriteCollectionForceBuild.

List of all members.

Public Member Functions

void UpdateMatrices ()
 Update matrices, if the sprite batcher has been built using .position, etc. It is far more efficient to simply set the matrices when building at runtime so do that if possible.
void Build ()
 Build a static sprite batcher's geometry and collider.

Public Attributes

tk2dBatchedSprite[] batchedSprites = null
 The list of batched sprites. Fill this and call Build to build your mesh.

Detailed Description

Static sprite batcher builds a collection of sprites, textmeshes into one static mesh for better performance.


Member Function Documentation

Build a static sprite batcher's geometry and collider.

Update matrices, if the sprite batcher has been built using .position, etc. It is far more efficient to simply set the matrices when building at runtime so do that if possible.


Member Data Documentation

tk2dBatchedSprite [] tk2dStaticSpriteBatcher.batchedSprites = null

The list of batched sprites. Fill this and call Build to build your mesh.