文档

Unity Engine

Unity Engine

GetEditorPreviewTile

Gets the editor preview Tile at the given XYZ coordinates of a cell in the Tilemap.
阅读时间1 分钟最后更新于 1 个月前

Definition

GetEditorPreviewTile(Vector3Int)

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

Parameters

position

Position of the editor preview Tile on the Tilemap.

Returns

Type

Description

TileBaseThe editor preview Tile placed at the cell.

Remarks

Refer to Scriptable Tiles and Tilemap for more information.

GetEditorPreviewTile<T>(Vector3Int)

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

Parameters

position

Position of the editor preview Tile on the Tilemap.

Returns

Type

Description

TThe editor preview Tile placed at the cell.

Remarks

Refer to Scriptable Tiles and Tilemap for more information.