Dialog Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class Dialog abstract : UnityEngine::MonoBehaviour
public abstract class Dialog : UnityEngine.MonoBehaviour
type Dialog = class
inherit MonoBehaviour
Public MustInherit Class Dialog
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourDialog
- Derived
Close |
Closes the dialog - state must be set to Closed afterwards |
Dismiss |
Function to destroy the Dialog. |
Finalize |
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 |
Generate |
Generates buttons - Must parent them under buttonParent! |
Launch(Dialog |
|
Open(Game |
Instantiates a dialog and passes a generated result |
Open(Game |
Instantiates a dialog and passes it a result |
Open |
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. |
Run |
Opens dialog, waits for input, then closes |
Set |
Set the title and message using the result E.g. using TextMesh components |
Update |
Perform any updates (animation, tagalong, etc) here This will be called every frame while waiting for input |
Продукт | Версии |
---|---|
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 |