Unity.XR.XREAL.XREALDialogView
Public Member Functions | |
virtual void | ShowInQueue () |
virtual XREALDialogView | SetTitle (string title) |
virtual XREALDialogView | SetContent (string content) |
virtual XREALDialogView | SetDuration (float duration) |
virtual XREALDialogView | SetConfirmAction (Action callback) |
virtual XREALDialogView | SetCloseCallback (Action< XREALDialogView > closeCallback) |
Events | |
Action | OnConfirm |
Action< XREALDialogView > | ClosedCallback |
Detailed Description
Represents the UI for a dialog pop-up window. Provides methods to configure and display the dialog in the application.
Member Function Documentation
◆ SetCloseCallback()
|
virtual |
Sets the callback action to be triggered when the GameObject is closed.
- Parameters
-
closeCallback
- Returns
◆ SetConfirmAction()
|
virtual |
Sets the callback action to be triggered when the confirm button is clicked.
- Parameters
-
callback
- Returns
◆ SetContent()
|
virtual |
Sets the content of the dialog's message.
- Parameters
-
content
- Returns
◆ SetDuration()
|
virtual |
Sets the duration for the UI to automatically hide. A value of 0 indicates the UI will not auto-hide.
- Parameters
-
duration seconds
- Returns
◆ SetTitle()
|
virtual |
Sets the content of the dialog's title.
- Parameters
-
title
- Returns