GetTile
Gets the Tile at the given XYZ coordinates of a cell in the Tilemap.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
GetTile(Vector3Int)
Gets the Tile at the given XYZ coordinates of a cell in the Tilemap.
public TileBase GetTile(Vector3Int position)
Parameters
Returns
Remarks
Use this method to get the Tile at the given XYZ coordinates of a cell in the Tilemap.
GetTile<T>(Vector3Int)
public T GetTile<T>(Vector3Int position) where T : TileBase
Parameters
Returns
Type | Description |
|---|---|
| T | Tile of type T placed at the cell. |
Remarks
Use this method to get the Tile of type T at the given XYZ coordinates of a cell in the Tilemap.