Static sprite batcher builds a collection of sprites, textmeshes into one static mesh for better performance. More...
Inherits tk2dRuntime.ISpriteCollectionForceBuild.
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. |
Static sprite batcher builds a collection of sprites, textmeshes into one static mesh for better performance.
void tk2dStaticSpriteBatcher.Build | ( | ) |
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.
tk2dBatchedSprite [] tk2dStaticSpriteBatcher.batchedSprites = null |
The list of batched sprites. Fill this and call Build to build your mesh.