Version: 2023.2
public Tilemaps.TileBase GetTile (Vector3Int position);

参数

position Position of the Tile on the Tilemap.

返回

TileBase 置于单元格处的 TileBase

描述

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

使用此方法可根据给定的瓦片地图中某个单元格的 XYZ 坐标,获取瓦片


public T GetTile (Vector3Int position);

参数

position Position of the Tile on the Tilemap.

返回

T 置于单元格处的 Tile of type T

描述

Gets the Tile of type T at the given XYZ coordinates of a cell in the Tilemap.

使用此方法可根据给定的瓦片地图中某个单元格的 XYZ 坐标,获取类型 T 的瓦片

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961