Bearbeiten

Freigeben über


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

public:
 static Microsoft::MixedReality::Toolkit::UI::Dialog ^ Open(UnityEngine::GameObject ^ dialogPrefab, Microsoft::MixedReality::Toolkit::UI::DialogResult ^ result);
public static Microsoft.MixedReality.Toolkit.UI.Dialog Open (UnityEngine.GameObject dialogPrefab, Microsoft.MixedReality.Toolkit.UI.DialogResult result);
static member Open : UnityEngine.GameObject * Microsoft.MixedReality.Toolkit.UI.DialogResult -> Microsoft.MixedReality.Toolkit.UI.Dialog
Public Shared Function Open (dialogPrefab As GameObject, result As DialogResult) As Dialog

Parameters

dialogPrefab
UnityEngine.GameObject

Dialog prefab

result
DialogResult

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

Returns

Applies to

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

Instantiates a dialog and passes a generated result

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);
static member Open : UnityEngine.GameObject * Microsoft.MixedReality.Toolkit.UI.DialogButtonType * string * string * bool * obj -> Microsoft.MixedReality.Toolkit.UI.Dialog
Public Shared Function Open (dialogPrefab As GameObject, buttons As DialogButtonType, title As String, message As String, placeForNearInteraction As Boolean, Optional variable As Object = Nothing) As Dialog

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