Show / Hide Table of Contents

Class GridLayout

Inheritance
Object
Object
Component
Behaviour
GridLayout
Grid
Tilemap
Inherited Members
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 class GridLayout : Behaviour

Properties

cellGap

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

cellLayout

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

cellSize

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

cellSwizzle

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

Methods

CellToLocal(Vector3Int)

Declaration
public Vector3 CellToLocal(Vector3Int cellPosition)
Parameters
Type Name Description
Vector3Int cellPosition
Returns
Type Description
Vector3

CellToLocalInterpolated(Vector3)

Declaration
public Vector3 CellToLocalInterpolated(Vector3 cellPosition)
Parameters
Type Name Description
Vector3 cellPosition
Returns
Type Description
Vector3

CellToWorld(Vector3Int)

Declaration
public Vector3 CellToWorld(Vector3Int cellPosition)
Parameters
Type Name Description
Vector3Int cellPosition
Returns
Type Description
Vector3

GetBoundsLocal(Vector3Int)

Declaration
public Bounds GetBoundsLocal(Vector3Int cellPosition)
Parameters
Type Name Description
Vector3Int cellPosition
Returns
Type Description
Bounds

GetLayoutCellCenter()

Declaration
public Vector3 GetLayoutCellCenter()
Returns
Type Description
Vector3

LocalToCell(Vector3)

Declaration
public Vector3Int LocalToCell(Vector3 localPosition)
Parameters
Type Name Description
Vector3 localPosition
Returns
Type Description
Vector3Int

LocalToCellInterpolated(Vector3)

Declaration
public Vector3 LocalToCellInterpolated(Vector3 localPosition)
Parameters
Type Name Description
Vector3 localPosition
Returns
Type Description
Vector3

LocalToWorld(Vector3)

Declaration
public Vector3 LocalToWorld(Vector3 localPosition)
Parameters
Type Name Description
Vector3 localPosition
Returns
Type Description
Vector3

WorldToCell(Vector3)

Declaration
public Vector3Int WorldToCell(Vector3 worldPosition)
Parameters
Type Name Description
Vector3 worldPosition
Returns
Type Description
Vector3Int

WorldToLocal(Vector3)

Declaration
public Vector3 WorldToLocal(Vector3 worldPosition)
Parameters
Type Name Description
Vector3 worldPosition
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