文档

Unity Engine

Unity Engine

GetTileData(Vector3Int, ITilemap, ref TileData)

Retrieves the tile rendering data for the Tile.
阅读时间1 分钟最后更新于 22 天前

Definition

GetTileData(Vector3Int, ITilemap, TileData)

public override void GetTileData(Vector3Int position, ITilemap tilemap, ref TileData tileData)

Parameters

position

Position of the Tile on the Tilemap.

tilemap

The Tilemap the tile is present on.

tileData

Data to render the tile. This is filled with Tile, Tile.color and Tile.transform.