Show / Hide Table of Contents

Class Grid

Inheritance
Object
Object
Component
Behaviour
GridLayout
Grid
Inherited Members
GridLayout.GetBoundsLocal(Vector3Int)
GridLayout.CellToLocal(Vector3Int)
GridLayout.LocalToCell(Vector3)
GridLayout.CellToLocalInterpolated(Vector3)
GridLayout.LocalToCellInterpolated(Vector3)
GridLayout.CellToWorld(Vector3Int)
GridLayout.WorldToCell(Vector3)
GridLayout.LocalToWorld(Vector3)
GridLayout.WorldToLocal(Vector3)
GridLayout.GetLayoutCellCenter()
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.transform
Component.gameObject
Component.GetComponent(Type)
Component.GetComponent<T>()
Component.GetComponent(String)
Component.GetComponentInChildren(Type, Boolean)
Component.GetComponentInChildren(Type)
Component.GetComponentInChildren<T>(Boolean)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren(Type, Boolean)
Component.GetComponentsInChildren(Type)
Component.GetComponentsInChildren<T>(Boolean)
Component.GetComponentsInChildren<T>(Boolean, List<T>)
Component.GetComponentsInChildren<T>()
Component.GetComponentsInChildren<T>(List<T>)
Component.GetComponentInParent(Type)
Component.GetComponentInParent<T>()
Component.GetComponentsInParent(Type, Boolean)
Component.GetComponentsInParent(Type)
Component.GetComponentsInParent<T>(Boolean)
Component.GetComponentsInParent<T>(Boolean, List<T>)
Component.GetComponentsInParent<T>()
Component.GetComponents(Type)
Component.GetComponents(Type, List<Component>)
Component.GetComponents<T>(List<T>)
Component.tag
Component.GetComponents<T>()
Component.CompareTag(String)
Component.SendMessageUpwards(String, Object, SendMessageOptions)
Component.SendMessageUpwards(String, Object)
Component.SendMessageUpwards(String)
Component.SendMessageUpwards(String, SendMessageOptions)
Component.SendMessage(String, Object)
Component.SendMessage(String)
Component.SendMessage(String, Object, SendMessageOptions)
Component.SendMessage(String, SendMessageOptions)
Component.BroadcastMessage(String, Object, SendMessageOptions)
Component.BroadcastMessage(String, Object)
Component.BroadcastMessage(String)
Component.BroadcastMessage(String, SendMessageOptions)
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public sealed class Grid : GridLayout

Properties

cellGap

Declaration
public Vector3 cellGap { get; set; }
Property Value
Type Description
Vector3

cellLayout

Declaration
public GridLayout.CellLayout cellLayout { get; set; }
Property Value
Type Description
GridLayout.CellLayout

cellSize

Declaration
public Vector3 cellSize { get; set; }
Property Value
Type Description
Vector3

cellSwizzle

Declaration
public GridLayout.CellSwizzle cellSwizzle { get; set; }
Property Value
Type Description
GridLayout.CellSwizzle

Methods

| Improve this Doc View Source

GetCellCenterLocal(Vector3Int)

Declaration
public Vector3 GetCellCenterLocal(Vector3Int position)
Parameters
Type Name Description
Vector3Int position
Returns
Type Description
Vector3
| Improve this Doc View Source

GetCellCenterWorld(Vector3Int)

Declaration
public Vector3 GetCellCenterWorld(Vector3Int position)
Parameters
Type Name Description
Vector3Int position
Returns
Type Description
Vector3

InverseSwizzle(GridLayout.CellSwizzle, Vector3)

Declaration
public static Vector3 InverseSwizzle(GridLayout.CellSwizzle swizzle, Vector3 position)
Parameters
Type Name Description
GridLayout.CellSwizzle swizzle
Vector3 position
Returns
Type Description
Vector3

Swizzle(GridLayout.CellSwizzle, Vector3)

Declaration
public static Vector3 Swizzle(GridLayout.CellSwizzle swizzle, Vector3 position)
Parameters
Type Name Description
GridLayout.CellSwizzle swizzle
Vector3 position
Returns
Type Description
Vector3

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX