Version: 2022.3
public Color GetColor (Vector3Int position);

参数

position 瓦片在 Tilemap 上的位置。

返回

Color Color of the Tile at the XYZ coordinate.

描述

根据给定的瓦片地图中某个单元格的 XYZ 坐标,获取瓦片的颜色。

请参阅可编程瓦片瓦片地图以了解更多信息。