Свойство | Тип | Описание | |
---|---|---|---|
buildKey | int | ||
data | tk2dTileMapData, | ||
editorDataGUID | string | ||
height | int | ||
partitionSizeX | int | ||
partitionSizeY | int | ||
renderData | GameObject | ||
serializeRenderData | bool | ||
serializedMeshPath | string | ||
width | int |
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public DeleteSprites ( int layerId, int x0, int y0, int x1, int y1 ) : void | ||
layerId | int | |
x0 | int | |
y0 | int | |
x1 | int | |
y1 | int | |
Результат | void |
public GetInterpolatedColorAtPosition ( Vector3 position ) : Color | ||
position | Vector3 | |
Результат | Color |
public GetTileAtPosition ( Vector3 position, int &x, int &y ) : bool | ||
position | Vector3 | |
x | int | |
y | int | |
Результат | bool |
public GetTileFracAtPosition ( Vector3 position, float &x, float &y ) : bool | ||
position | Vector3 | |
x | float | |
y | float | |
Результат | bool |
public GetTileIdAtPosition ( Vector3 position, int layer ) : int | ||
position | Vector3 | |
layer | int | |
Результат | int |
public GetTileInfoForTileId ( int tileId ) : |
||
tileId | int | |
Результат |
public GetTilePosition ( int x, int y ) : Vector3 | ||
x | int | |
y | int | |
Результат | Vector3 |
public UsesSpriteCollection ( tk2dSpriteCollectionData, spriteCollection ) : bool | ||
spriteCollection | tk2dSpriteCollectionData, | |
Результат | bool |