GridObjectLayoutControl 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.
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.MonoBehaviourGridObjectLayoutControl
- 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" |