GetBoundsLocal
Returns the local bounds for a cell at the location.
読み終わるまでの所要時間 1 分最終更新 6日前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.GridModule
GetBoundsLocal(Vector3Int)
Returns the local bounds for a cell at the location.
public Bounds GetBoundsLocal(Vector3Int cellPosition)
Parameters
Location of the cell.
Returns
Type | Description |
|---|---|
| Bounds | Local bounds of cell at the location. |
Remarks
The bounds are centered on the center of the cell and have the size of GridLayout.cellSize.
GetBoundsLocal(Vector3, Vector3)
Returns the local bounds for the groups of cells at the location.
public Bounds GetBoundsLocal(Vector3 origin, Vector3 size)
Parameters
Returns
Type | Description |
|---|---|
| Bounds | Local bounds of the group of cells at the location. |