# SetEditorPreviewTile(Vector3Int, TileBase)

> Sets an editor preview Tile given the 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

```csharp
public void SetEditorPreviewTile(Vector3Int position, TileBase tile)
```

### 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).**** (\[TileBase]\(/engine/6000.6/script-reference/unityengine/tilemaps/tilebase)): The editor preview [Tile](/engine/6000.6/script-reference/unityengine/wsa/tile.md) to be placed the cell.

### Remarks

The editor preview Tile is used for previewing possible additions to the Tilemap.
