LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

ITilemap.GetTile

public Tilemaps.TileBase GetTile(Vector3Int position);

Parameters

positionPosition of the Tile on the Tilemap.

Returns

TileBase Tile placed at the cell.

Description

Gets the tile at the given XYZ coordinates of a cell in the tile map.


public T GetTile(Vector3Int position);

Parameters

positionPosition of the Tile on the Tilemap.

Returns

T Tile of type T placed at the cell.

Description

Gets the tile of type T at the given XYZ coordinates of a cell in the tile map.