# GetEditorPreviewTile

> Gets the editor preview Tile at the given XYZ coordinates of a cell in the Tilemap.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Tilemaps](/engine/6000.6/script-reference/unityengine/tilemaps.md)
* **Assembly:** UnityEngine.TilemapModule

## GetEditorPreviewTile(Vector3Int)

Gets the editor preview [Tile](/engine/6000.6/script-reference/unityengine/wsa/tile.md) at the given XYZ coordinates of a cell in the [Tilemap](/engine/6000.6/script-reference/unityengine/tilemaps/tilemap.md).

```csharp
public TileBase GetEditorPreviewTile(Vector3Int position)
```

### Parameters

**** (\[Vector3Int]\(/engine/6000.6/script-reference/unityengine/vector3int)): Position of the editor preview [Tile](/engine/6000.6/script-reference/unityengine/wsa/tile.md) on the [Tilemap](/engine/6000.6/script-reference/unityengine/tilemaps/tilemap.md).

### Returns

| Type                                                                         | Description                                                                                            |
| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| [TileBase](/engine/6000.6/script-reference/unityengine/tilemaps/tilebase.md) | The editor preview [Tile](/engine/6000.6/script-reference/unityengine/wsa/tile.md) placed at the cell. |

### Remarks

Refer to Scriptable Tiles and Tilemap for more information.

## GetEditorPreviewTile\<T>(Vector3Int)

Gets the editor preview [Tile](/engine/6000.6/script-reference/unityengine/wsa/tile.md) at the given XYZ coordinates of a cell in the [Tilemap](/engine/6000.6/script-reference/unityengine/tilemaps/tilemap.md).

```csharp
public T GetEditorPreviewTile<T>(Vector3Int position) where T : TileBase
```

### Parameters

**** (\[Vector3Int]\(/engine/6000.6/script-reference/unityengine/vector3int)): Position of the editor preview Tile on the [Tilemap](/engine/6000.6/script-reference/unityengine/tilemaps/tilemap.md).

### Returns

| Type | Description                                                                                            |
| ---- | ------------------------------------------------------------------------------------------------------ |
| T    | The editor preview [Tile](/engine/6000.6/script-reference/unityengine/wsa/tile.md) placed at the cell. |

### Remarks

Refer to Scriptable Tiles and Tilemap for more information.
