C# Class tk2dStaticSpriteBatcher, Malisse

Static sprite batcher builds a collection of sprites, textmeshes into one static mesh for better performance.
Inheritance: MonoBehaviour, tk2dRuntime.ISpriteCollectionForceBuild
Mostrar archivo Open project: Collegiennes/Malisse Class Usage Examples

Public Properties

Property Type Description
CURRENT_VERSION int
batchedSprites tk2dBatchedSprite[],
spriteCollection tk2dSpriteCollectionData,
version int

Public Methods

Method Description
Build ( ) : void
ForceBuild ( ) : void
UsesSpriteCollection ( tk2dSpriteCollectionData, spriteCollection ) : bool

Protected Methods

Method Description
OnDestroy ( ) : void

Private Methods

Method Description
Awake ( ) : void
BuildPhysicsMesh ( ) : void
BuildRenderMesh ( ) : void
SortBatchedSprites ( ) : void
UpgradeData ( ) : bool

Method Details

Build() public method

public Build ( ) : void
return void

ForceBuild() public method

public ForceBuild ( ) : void
return void

OnDestroy() protected method

protected OnDestroy ( ) : void
return void

UsesSpriteCollection() public method

public UsesSpriteCollection ( tk2dSpriteCollectionData, spriteCollection ) : bool
spriteCollection tk2dSpriteCollectionData,
return bool

Property Details

CURRENT_VERSION public_oe static_oe property

public static int CURRENT_VERSION
return int

batchedSprites public_oe property

public tk2dBatchedSprite[], batchedSprites
return tk2dBatchedSprite[],

spriteCollection public_oe property

public tk2dSpriteCollectionData, spriteCollection
return tk2dSpriteCollectionData,

version public_oe property

public int version
return int