Class DialogButton
Handling click event and dismiss dialog
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 |