DialogButton Class

Definition

Handling click event and dismiss dialog

C++
public ref class DialogButton : UnityEngine::MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
DialogButton

Constructors

Fields

ButtonTypeEnum

The type description of the button

Properties

ButtonText
ParentDialog

A reference to the Dialog that this button is on.

Methods

OnButtonClicked(GameObject)

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

SetTitle(String)

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

Applies to

Produit Versions
MRTK2 Unity 2018 2.6.0, 2.7.0
MRTK2 Unity 2019 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.6.0, 2.7.0, 2.8.0