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 DialogButton

    Handling click event and dismiss dialog

    Inheritance
    Object
    DialogButton
    Namespace: Microsoft.MixedReality.Toolkit.UI
    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 Dialog ParentDialog { get; set; }
    Property Value
    Type Description
    Dialog

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