Szerkesztés

Megosztás a következőn keresztül:


GridObjectLayoutControl Class

Definition

Provides functions to control layout of GridObjectCollection as well as to output positions of child controls to help with building GridObjectCollectionTests.

public ref class GridObjectLayoutControl : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/GridObjectLayoutControl")]
public class GridObjectLayoutControl : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/GridObjectLayoutControl")>]
type GridObjectLayoutControl = class
    inherit MonoBehaviour
Public Class GridObjectLayoutControl
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
GridObjectLayoutControl
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

GridObjectLayoutControl()

Fields

grid
text

Methods

NextLayout()

Change the grid collection's layout to the next one in order.

PreviousLayout()

Change the grid's layout to the previous one in order.

RunTest()

Use this to run mock tests in grid object collection tests and print the resulting positions of child objects to a file. Used to get expected values for GridObjectCollectionTests. When you run the command, look in the Debug log for where the file is output, it will be of form "printgrid-yyMMdd-HHmmss.txt"

Applies to