TileGridObjectCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A basic grid layout for game objects of a consistent size
public ref class TileGridObjectCollection : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/TileGridObjectCollection")]
[UnityEngine.ExecuteAlways]
public class TileGridObjectCollection : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/TileGridObjectCollection")>]
[<UnityEngine.ExecuteAlways>]
type TileGridObjectCollection = class
inherit MonoBehaviour
Public Class TileGridObjectCollection
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourTileGridObjectCollection
- Attributes
-
UnityEngine.AddComponentMenuAttribute UnityEngine.ExecuteAlwaysAttribute
Constructors
TileGridObjectCollection() |
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() |