Skip to content
SiteEmail

cohtml.Editor.InfoWindow

Helper class extending Unity3D’s EditorWindow and allows showing popup notification window with buttons.

Inherits from EditorWindow

Name
classData
Class storing popup InfoWindow data such as content message, button text, etc.
Name
voidPopup(string title, string message, string buttonText, Action onButtonClicked =null)
Shows a popup window with a title, message and a button.
voidOnEnable()
voidCloseWindow()
Closes the editor window.
Name
InfoWindowInstance
Returns a Singleton instance of the InfoWindow class.
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.
void OnEnable()
void CloseWindow()

Closes the editor window.

static InfoWindow Instance;

Returns a Singleton instance of the InfoWindow class.