public Tilemaps.TileBase GetTile (Vector3Int position);

Parameters

position瓦片在 Tilemap 上的位置。

Returns

TileBase 置于单元格处的 Tile

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.


public T GetTile (Vector3Int position);

Parameters

position瓦片在 Tilemap 上的位置。

Returns

T 置于单元格处的 Tile of type T

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.