cohtml.InfoWindow
Helper class extending Unity3D’s EditorWindow and allows showing popup notification window with buttons.
Inherits from EditorWindow
Public Classes
Name | |
---|---|
class | Data Class storing popup InfoWindow data such as content message, button text, etc. |
Public Functions
Name | |
---|---|
void | Popup(string title, string message, string buttonText, Action onButtonClicked =null) Shows a popup window with a title, message and a button. |
void | OnEnable() |
void | CloseWindow() Closes the editor window. |
Public Properties
Name | |
---|---|
InfoWindow | Instance Returns a Singleton instance of the InfoWindow class. |
Public Functions Documentation
function Popup
static void Popup(
string title,
string message,
string buttonText,
Action onButtonClicked =null
)
Shows a popup window with a title, message and a button.
Parameters:
- title The title of the window.
- message The text content of the popup window.
- buttonText The text content of the button.
- onButtonClicked Event to be executed when the button is clicked.
function OnEnable
void OnEnable()
function CloseWindow
void CloseWindow()
Closes the editor window.
Public Property Documentation
property Instance
static InfoWindow Instance;
Returns a Singleton instance of the InfoWindow class.