Class GridObjectLayoutControl
Provides functions to control layout of GridObjectCollection as well as to output positions of child controls to help with building GridObjectCollectionTests.
Implements
Namespace: Microsoft.MixedReality.Toolkit.Examples.Demos
Assembly: cs.temp.dll.dll
Syntax
public class GridObjectLayoutControl : MonoBehaviour, MonoBehaviour
Fields
grid
Declaration
public GridObjectCollection grid
Field Value
Type | Description |
---|---|
GridObjectCollection |
grid
Declaration
public GridObjectCollection grid
Field Value
Type | Description |
---|---|
GridObjectCollection |
text
Declaration
public TMPro.TextMeshPro text
Field Value
Type | Description |
---|---|
TMPro.TextMeshPro |
text
Declaration
public TMPro.TextMeshPro text
Field Value
Type | Description |
---|---|
TMPro.TextMeshPro |
Methods
NextLayout()
Change the grid collection's layout to the next one in order.
Declaration
public void NextLayout()
NextLayout()
Change the grid collection's layout to the next one in order.
Declaration
public void NextLayout()
PreviousLayout()
Change the grid's layout to the previous one in order.
Declaration
public void PreviousLayout()
PreviousLayout()
Change the grid's layout to the previous one in order.
Declaration
public void PreviousLayout()
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 comand, look in the Debug log for where the file is output, it will be of form "printgrid-yyMMdd-HHmmss.txt"
Declaration
public void RunTest()
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 comand, look in the Debug log for where the file is output, it will be of form "printgrid-yyMMdd-HHmmss.txt"
Declaration
public void RunTest()