mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class DialogButton

    Handling click event and dismiss dialog

    Inheritance
    Object
    DialogButton
    Namespace: Microsoft.MixedReality.Toolkit.Experimental.Dialog
    Assembly: cs.temp.dll.dll
    Syntax
    public class DialogButton : MonoBehaviour

    Fields

    ButtonTypeEnum

    The type description of the button

    Declaration
    public DialogButtonType ButtonTypeEnum
    Field Value
    Type Description
    DialogButtonType

    Properties

    ButtonText

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

    ParentDialog

    A reference to the Dialog that this button is on.

    Declaration
    public DialogShell ParentDialog { get; set; }
    Property Value
    Type Description
    DialogShell

    Methods

    OnButtonClicked(GameObject)

    Event handler that runs when button is clicked. Dismisses the parent dialog.

    Declaration
    public void OnButtonClicked(GameObject obj)
    Parameters
    Type Name Description
    GameObject obj

    Caller GameObject

    SetTitle(String)

    Setter method to set the text at the top of the Dialog.

    Declaration
    public void SetTitle(string title)
    Parameters
    Type Name Description
    String title

    Title of the button

    In This Article
    • Fields
      • ButtonTypeEnum
    • Properties
      • ButtonText
      • ParentDialog
    • Methods
      • OnButtonClicked(GameObject)
      • SetTitle(String)
    Back to top Generated by DocFX