Version: 2021.1

Tilemap.SetEditorPreviewColor

切换到手册
public void SetEditorPreviewColor (Vector3Int position, Color color);

参数

position 编辑器预览瓦片在 Tilemap 上的位置。
color Color to set the editor preview Tile to at the XYZ coordinate.

描述

Sets the color of an editor preview Tile given the XYZ coordinates of a cell in the Tilemap.

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