This version of Unity is unsupported.

Tilemap.GetEditorPreviewSprite

public Sprite GetEditorPreviewSprite(Vector3Int position);

Parameters

positionPosition of the editor preview Tile on the Tilemap.

Returns

Sprite Sprite at the XY coordinate.

Description

Gets the Sprite used in an editor preview tile given the XYZ coordinates of a cell in the tile map.