Editar

Compartilhar via


TileGridObjectCollection Class

Definition

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.MonoBehaviour
TileGridObjectCollection
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()

Applies to