Edit

Bagikan melalui


DialogShell Class

Definition

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.

public ref class DialogShell : Microsoft::MixedReality::Toolkit::UI::Dialog
public class DialogShell : Microsoft.MixedReality.Toolkit.UI.Dialog
type DialogShell = class
    inherit Dialog
Public Class DialogShell
Inherits Dialog
Inheritance
UnityEngine.MonoBehaviour
DialogShell

Constructors

DialogShell()

Fields

OnClosed

Called after user has clicked a button and the dialog has finished closing

(Inherited from Dialog)
result (Inherited from Dialog)

Properties

DescriptionText

Description text of the dialog

Result

Can be used to monitor result instead of events

(Inherited from Dialog)
State

The current state of the Dialog.

(Inherited from Dialog)
TitleText

Title text of the dialog

Methods

CloseDialog()

Closes the dialog - state must be set to Closed afterwards

(Inherited from Dialog)
DismissDialog()

Function to destroy the Dialog.

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

GenerateButtons()

Generates buttons - Must parent them under buttonParent!

Launch(DialogResult) (Inherited from Dialog)
OpenDialog()

Opens the dialog - state must be set to WaitingForInput afterwards Overridden in inherited class. Perform any change here that you'd like to have when the dialog opened.

(Inherited from Dialog)
RunDialogOverTime()

Opens dialog, waits for input, then closes

(Inherited from Dialog)
SetTitleAndMessage()

Set Title and Text on the Dialog.

UpdateDialog()

Perform any updates (animation, tagalong, etc) here This will be called every frame while waiting for input

(Inherited from Dialog)

Applies to