Version: 2017.3

GridBrush.GetCellIndex

切换到手册
public int GetCellIndex (Vector3Int brushPosition);
public int GetCellIndex (int x, int y, int z);
public int GetCellIndex (int x, int y, int z, int sizex, int sizey, int sizez);

参数

brushPosition BrushCell 的位置。
x BrushCell 的 X 位置。
y BrushCell 的 Y 位置。
z BrushCell 的 Z 位置。
sizex 画笔的 X 大小。
sizey 画笔的 Y 大小。
sizez 画笔的 Z 大小。

返回

int 到 BrushCell 的索引。

描述

基于 BrushCell 的位置,获取到 GridBrush.BrushCell 的索引。

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