Version: 2023.1

Tilemap.GetInstantiatedObject

切换到手册
public GameObject GetInstantiatedObject (Vector3Int position);

参数

position 瓦片在 Tilemap 上的位置。

返回

GameObject GameObject instantiated by the Tile at the position.

描述

Gets the GameObject instantiated by a Tile given the XYZ coordinates of a cell in the Tilemap.

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