Dialog.Open Method

Definition

Overloads

Open(GameObject, DialogResult)

Instantiates a dialog and passes it a result

Open(GameObject, DialogButtonType, String, String, Boolean, Object)

Instantiates a dialog and passes a generated result

Open(GameObject, DialogResult)

Instantiates a dialog and passes it a result

C++
public:
 static Microsoft::MixedReality::Toolkit::UI::Dialog ^ Open(UnityEngine::GameObject ^ dialogPrefab, Microsoft::MixedReality::Toolkit::UI::DialogResult ^ result);

Parameters

dialogPrefab
UnityEngine.GameObject

Dialog prefab

result
DialogResult

DialogResult class object which contains information such as title and description text

Returns

Applies to

MRTK2 Unity 2018 2.7.0 ja muud versioonid
Toode Versioonid
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

Open(GameObject, DialogButtonType, String, String, Boolean, Object)

Instantiates a dialog and passes a generated result

C#
public static Microsoft.MixedReality.Toolkit.UI.Dialog Open (UnityEngine.GameObject dialogPrefab, Microsoft.MixedReality.Toolkit.UI.DialogButtonType buttons, string title, string message, bool placeForNearInteraction, object variable = default);

Parameters

dialogPrefab
UnityEngine.GameObject

Dialog prefab

buttons
DialogButtonType

button configuration type which is defined in DialogButtonType enum

title
String

Title text of the dialog

message
String

Description text of the dialog

placeForNearInteraction
Boolean
variable
Object

Object with additional variable

Returns

Applies to

MRTK2 Unity 2018 2.7.0 ja muud versioonid
Toode Versioonid
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