Class Grid
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public sealed class Grid : GridLayout
Properties
cellGap
Declaration
public Vector3 cellGap { get; set; }
Property Value
cellLayout
Declaration
public GridLayout.CellLayout cellLayout { get; set; }
Property Value
cellSize
Declaration
public Vector3 cellSize { get; set; }
Property Value
cellSwizzle
Declaration
public GridLayout.CellSwizzle cellSwizzle { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
GetCellCenterLocal(Vector3Int)
Declaration
public Vector3 GetCellCenterLocal(Vector3Int position)
Parameters
Returns
|
Improve this Doc
View Source
GetCellCenterWorld(Vector3Int)
Declaration
public Vector3 GetCellCenterWorld(Vector3Int position)
Parameters
Returns
InverseSwizzle(GridLayout.CellSwizzle, Vector3)
Declaration
public static Vector3 InverseSwizzle(GridLayout.CellSwizzle swizzle, Vector3 position)
Parameters
Returns
Swizzle(GridLayout.CellSwizzle, Vector3)
Declaration
public static Vector3 Swizzle(GridLayout.CellSwizzle swizzle, Vector3 position)
Parameters
Returns
Extension Methods