Class GridLayout
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public class GridLayout : Behaviour
Properties
cellGap
Declaration
public Vector3 cellGap { get; }
Property Value
cellLayout
Declaration
public GridLayout.CellLayout cellLayout { get; }
Property Value
cellSize
Declaration
public Vector3 cellSize { get; }
Property Value
cellSwizzle
Declaration
public GridLayout.CellSwizzle cellSwizzle { get; }
Property Value
Methods
CellToLocal(Vector3Int)
Declaration
public Vector3 CellToLocal(Vector3Int cellPosition)
Parameters
Returns
CellToLocalInterpolated(Vector3)
Declaration
public Vector3 CellToLocalInterpolated(Vector3 cellPosition)
Parameters
Type |
Name |
Description |
Vector3 |
cellPosition |
|
Returns
CellToWorld(Vector3Int)
Declaration
public Vector3 CellToWorld(Vector3Int cellPosition)
Parameters
Returns
GetBoundsLocal(Vector3Int)
Declaration
public Bounds GetBoundsLocal(Vector3Int cellPosition)
Parameters
Returns
GetLayoutCellCenter()
Declaration
public Vector3 GetLayoutCellCenter()
Returns
LocalToCell(Vector3)
Declaration
public Vector3Int LocalToCell(Vector3 localPosition)
Parameters
Type |
Name |
Description |
Vector3 |
localPosition |
|
Returns
LocalToCellInterpolated(Vector3)
Declaration
public Vector3 LocalToCellInterpolated(Vector3 localPosition)
Parameters
Type |
Name |
Description |
Vector3 |
localPosition |
|
Returns
LocalToWorld(Vector3)
Declaration
public Vector3 LocalToWorld(Vector3 localPosition)
Parameters
Type |
Name |
Description |
Vector3 |
localPosition |
|
Returns
WorldToCell(Vector3)
Declaration
public Vector3Int WorldToCell(Vector3 worldPosition)
Parameters
Type |
Name |
Description |
Vector3 |
worldPosition |
|
Returns
WorldToLocal(Vector3)
Declaration
public Vector3 WorldToLocal(Vector3 worldPosition)
Parameters
Type |
Name |
Description |
Vector3 |
worldPosition |
|
Returns
Extension Methods