Property | Type | Description | |
---|---|---|---|
buildKey | int | ||
data | tk2dTileMapData, | ||
editorDataGUID | string | ||
height | int | ||
partitionSizeX | int | ||
partitionSizeY | int | ||
renderData | GameObject | ||
serializeRenderData | bool | ||
serializedMeshPath | string | ||
width | int |
Method | Description | |
---|---|---|
AreSpritesInitialized ( ) : bool | ||
Awake ( ) : void | ||
BeginEditMode ( ) : void | ||
Build ( ) : void | ||
Build ( BuildFlags buildFlags ) : void | ||
ClearSpawnedInstances ( ) : void | ||
CreateColorChannel ( ) : void | ||
DeleteColorChannel ( ) : void | ||
DeleteSprites ( int layerId, int x0, int y0, int x1, int y1 ) : void | ||
DestroyMesh ( Mesh mesh ) : void | ||
EndEditMode ( ) : void | ||
ForceBuild ( ) : void | ||
GetInterpolatedColorAtPosition ( Vector3 position ) : Color |
Gets the tile at position. This can be used to obtain tile data, etc -1 = no data or empty tile
|
|
GetOrCreateMesh ( ) : Mesh | ||
GetTileAtPosition ( Vector3 position, int &x, int &y ) : bool |
Gets the tile coordinate at position. This can be used to obtain tile or color data explicitly from layers Returns true if the position is within the tilemap bounds
|
|
GetTileFracAtPosition ( Vector3 position, float &x, float &y ) : bool |
Gets the tile coordinate at position. This can be used to obtain tile or color data explicitly from layers The fractional value returned is the fraction into the current tile Returns true if the position is within the tilemap bounds
|
|
GetTileIdAtPosition ( Vector3 position, int layer ) : int |
Gets the tile at position. This can be used to obtain tile data, etc -1 = no data or empty tile
|
|
GetTileInfoForTileId ( int tileId ) : |
Returns the tile info chunk for the tile. Use this to store additional metadata
|
|
GetTilePosition ( int x, int y ) : Vector3 |
Returns the tile position in world space
|
|
HasColorChannel ( ) : bool | ||
TouchMesh ( Mesh mesh ) : void | ||
UsesSpriteCollection ( tk2dSpriteCollectionData, spriteCollection ) : bool |
public Build ( BuildFlags buildFlags ) : void | ||
buildFlags | BuildFlags | |
return | void |
public DeleteSprites ( int layerId, int x0, int y0, int x1, int y1 ) : void | ||
layerId | int | |
x0 | int | |
y0 | int | |
x1 | int | |
y1 | int | |
return | void |
public GetInterpolatedColorAtPosition ( Vector3 position ) : Color | ||
position | Vector3 | |
return | Color |
public GetTileAtPosition ( Vector3 position, int &x, int &y ) : bool | ||
position | Vector3 | |
x | int | |
y | int | |
return | bool |
public GetTileFracAtPosition ( Vector3 position, float &x, float &y ) : bool | ||
position | Vector3 | |
x | float | |
y | float | |
return | bool |
public GetTileIdAtPosition ( Vector3 position, int layer ) : int | ||
position | Vector3 | |
layer | int | |
return | int |
public GetTileInfoForTileId ( int tileId ) : |
||
tileId | int | |
return |
public GetTilePosition ( int x, int y ) : Vector3 | ||
x | int | |
y | int | |
return | Vector3 |
public UsesSpriteCollection ( tk2dSpriteCollectionData, spriteCollection ) : bool | ||
spriteCollection | tk2dSpriteCollectionData, | |
return | bool |