Tilemap.GetTile

Declaration

public Tilemaps.TileBase GetTile(Vector3Int position);

Parameters

position Position of the Tile on the Tilemap.

Returns

TileBase TileBase placed at the cell.

Description

Gets the Tile at the given XYZ coordinates of a cell in the Tilemap.

Use this method to get the Tile at the given XYZ coordinates of a cell in the Tilemap.


Declaration

public T GetTile(Vector3Int position);

Parameters

position Position 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 Tilemap.

Use this method to get the Tile of type T at the given XYZ coordinates of a cell in the Tilemap.


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