TileGridObjectCollection Class

Definition

A basic grid layout for game objects of a consistent size

C++
public ref class TileGridObjectCollection : UnityEngine::MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
TileGridObjectCollection
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.ExecuteAlwaysAttribute

Constructors

Fields

Centered

Will the grid be centered or start in the top corner

Columns

How many columns should the grid have

DepthCalculatedBy

The depth or z uses the rows if true or columns if false

editorUpdated
Gutters

The space between tiles in pixels

LayoutDireciton

The layout direction as a normalized vector

offSet
OnlyInEditMode

Should this update during run-time

StartPosition

The starting position of the grid - an offset value

TileSize

Tile size in pixels

Methods

ConfigureGrid(Int32, Vector3, Vector3, Vector3, Vector3, Boolean)

Load the settings of the grid with code

GetListPosition(Int32)

Set the item position by index

OnValidate()
Start()
Update()

Applies to

Produit Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0