Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetEditorPreviewTile

Gets the editor preview Tile at the given XYZ coordinates of a cell in the Tilemap.
Read time 1 minuteLast updated 7 days ago

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.