We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class GridObjectLayoutControl

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

    Inheritance
    Object
    GridObjectLayoutControl
    Namespace: Microsoft.MixedReality.Toolkit.Examples.Demos
    Assembly: cs.temp.dll.dll
    Syntax
    public class GridObjectLayoutControl : MonoBehaviour

    Fields

    grid

    Declaration
    public GridObjectCollection grid
    Field Value
    Type Description
    GridObjectCollection

    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()

    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 command, look in the Debug log for where the file is output, it will be of form "printgrid-yyMMdd-HHmmss.txt"

    Declaration
    public void RunTest()
    In This Article
    Back to top Generated by DocFX