ドキュメント

Unity Engine

Unity Engine

GetTile

Gets the Tile at the given XYZ coordinates of a cell in the Tilemap.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

GetTile(Vector3Int)

Gets the Tile at the given XYZ coordinates of a cell in the Tilemap.
public TileBase GetTile(Vector3Int position)

Parameters

position

Position of the Tile on the Tilemap.

Returns

Type

Description

TileBaseTileBase placed at the cell.

Remarks

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

GetTile<T>(Vector3Int)

Gets the Tile of type T at the given XYZ coordinates of a cell in the Tilemap.
public T GetTile<T>(Vector3Int position) where T : TileBase

Parameters

position

Position of the Tile on the Tilemap.

Returns

Type

Description

TTile 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.