Version: 2017.2

GridBrush.GetCellIndexWrapAround

切换到手册
public int GetCellIndexWrapAround (int x, int y, int z);

参数

x BrushCell 的 X 位置。
y BrushCell 的 Y 位置。
z BrushCell 的 Z 位置。

返回

int 到 BrushCell 的索引。

描述

基于 BrushCell 的位置,获取到 GridBrush.BrushCell 的索引。如果每个坐标的大小大于 GridBrush,则对其进行封装。

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