mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0releases/2.3.0releases/2.4.0releases/2.5.0releases/2.5.1releases/2.5.2releases/2.5.3

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 DialogShell

    This class implements the abstract class Dialog. DialogShell class manages a dialog object that can have one or two option buttons. If you try to open a dialog with more than two option buttons, it will show the first two.

    Inheritance
    Object
    Dialog
    DialogShell
    Inherited Members
    Dialog.State
    Dialog.OnClosed
    Dialog.result
    Dialog.Result
    Dialog.Launch(DialogResult)
    Dialog.RunDialogOverTime()
    Dialog.OpenDialog()
    Dialog.CloseDialog()
    Dialog.UpdateDialog()
    Dialog.Open(GameObject, DialogResult)
    Dialog.Open(GameObject, DialogButtonType, String, String, Boolean, Object)
    Namespace: Microsoft.MixedReality.Toolkit.Experimental.Dialog
    Assembly: cs.temp.dll.dll
    Syntax
    public class DialogShell : Dialog

    Properties

    DescriptionText

    Description text of the dialog

    Declaration
    public TextMeshPro DescriptionText { get; set; }
    Property Value
    Type Description
    TextMeshPro

    TitleText

    Title text of the dialog

    Declaration
    public TextMeshPro TitleText { get; set; }
    Property Value
    Type Description
    TextMeshPro

    Methods

    DismissDialog()

    Function to destroy the Dialog.

    Declaration
    public void DismissDialog()

    FinalizeLayout()

    This is called after the buttons are generated and the title and message have been set. Perform here any operations that you'd like Lays out the buttons on the dialog E.g. using an ObjectCollection

    Declaration
    protected override void FinalizeLayout()
    Overrides
    Dialog.FinalizeLayout()

    GenerateButtons()

    Generates buttons - Must parent them under buttonParent!

    Declaration
    protected override void GenerateButtons()
    Overrides
    Dialog.GenerateButtons()

    SetTitleAndMessage()

    Set Title and Text on the Dialog.

    Declaration
    protected override void SetTitleAndMessage()
    Overrides
    Dialog.SetTitleAndMessage()
    In This Article
    • Properties
      • DescriptionText
      • TitleText
    • Methods
      • DismissDialog()
      • FinalizeLayout()
      • GenerateButtons()
      • SetTitleAndMessage()
    Back to top Generated by DocFX