Cross Input Supported Window UGUI
🪟 CrossInputSupportedWindowUGUI Class
Base class for an input‑supported window.
Namespace:
Esper.Inventool.UI.UGUI
Access:public
Type:class
Inherits:MonoBehaviour
📦 Fields
public
canvas
Canvas
The root canvas.
public
content
RectTransform
The main content container.
public
onOpened
UnityEvent
Callback invoked when the window opens.
public
onClosed
UnityEvent
Callback invoked when the window closes.
🔍 Properties
public
IsOpen
bool
True if the window is currently open.
🧰 Methods
protected virtual
Awake()
void
Initializes the canvas and content references.
protected virtual
Start()
void
Registers close event and calls Register()
.
protected virtual
RegisterButtonEvents(Button button)
void
Registers hover and click events for a button.
public
Register()
void
Registers this window with CrossInputSupportUGUI.Instance
.
public
Unregister()
void
Unregisters this window from CrossInputSupportUGUI.Instance
.
Last updated