Grid

class in UnityEngine

/

Hereda de:GridLayout

Cambiar al Manual

Descripción

Grid is the base class for plotting a layout of uniformly spaced points and lines.

The Grid component stores dimensional data of the layout of the grid and provides helper functions to retrieve information about the grid, such as the conversion between the cell location and local space location of items within the grid.

The layout of the Grid component is in the XY plane with the origin of the grid always beginning at (0, 0) and the X and Y coordinates of the grid only as positive values.

Implements the interface GridLayout.

Variables

cellGapThe size of the gap between each cell in the Grid.
cellLayoutThe layout of the cells in the Grid.
cellSizeThe size of each cell in the Grid.
cellSwizzleThe cell swizzle for the Grid.

Funciones Públicas

GetCellCenterLocalGet the logical center coordinate of a grid cell in local space.
GetCellCenterWorldGet the logical center coordinate of a grid cell in world space.

Funciones Estáticas

InverseSwizzleDoes the inverse swizzle of the given position for given swizzle order.
SwizzleSwizzles the given position with the given swizzle order.

Miembros heredados

Variables

enabledEnabled Behaviours are Updated, disabled Behaviours are not.
isActiveAndEnabledHas the Behaviour had enabled called.
gameObjectEl game object que tiene este componente adjunto. Un componente siempre está adjunto a un game object.
tagEl tag de este game object.