日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    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()
    Back to top Generated by DocFX