ITilemap.GetColor 获取颜色

public Color GetColor(Vector3Int position);
public Color GetColor(Vector3Int 位置);

Parameters 参数

位置 position 瓦片在Tilemap上的位置 Position of the Tile on the Tilemap.

Returns 返回

Color Color of the tile at the XY coordinate.

颜色 tile 在XY坐标的颜色

Description 描述

Gets the color of a Tile given the XYZ coordinates of a cell in the Tilemap.

获取指定定Tilemap网格中的XYZ坐标的Tile颜色。

Refer to Scriptable Tiles and Tilemap for more information.

有关更多信息请参考 Scriptable TilesTilemap