Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Tile.GetTileData

public void GetTileData(Vector3Int position, Tilemaps.ITilemap tilemap, ref Tilemaps.TileData tileData);

Parameters

positionPosition of the Tile on the Tilemap.
tilemapThe Tilemap the tile is present on.
tileDataData to render the tile. This is filled with Tile, Tile.color and Tile.transform.

Returns

void Whether the call was successful. This returns true for Tile.

Description

Retrieves the tile rendering data for the Tile.

Did you find this page useful? Please give it a rating: