API
GamePanel
Fields
Field
Type
Description
Methods
virtual void OpenPanel()
// Shows the panel. Sets CanvasGroup alpha to 1, interactable and
// blocksRaycasts to true. Checks the "DEAD" rule and blocks opening
// if the player is dead. Sets the "UI_OPENED" rule to true.
virtual void ClosePanel()
// Hides the panel. Sets CanvasGroup alpha to 0, interactable and
// blocksRaycasts to false. Updates "UI_OPENED" rule.
bool IsOpen { get; }
// Returns current open state.
virtual void OnPanelOpened()
// Override hook called after the panel opens.
virtual void OnPanelClosed()
// Override hook called after the panel closes.
static int GetOpenPanelCount()
// Returns how many panels are currently open.
static bool AnyPanelOpen()
// True if at least one panel is open.
static bool AnyOtherPanelOpen(GamePanel excludePanel)
// True if any panel besides the given one is open.
static void CloseAllOtherPanels(GamePanel excludePanel)
// Closes all panels except the specified one.SparkUISpawner
Fields
Field
Type
Description
Methods
CursorManager
Fields
Field
Type
Description
Methods
ICursorProvider
CursorOptionData
Field
Type
Description
GenericTooltipData
Field
Type
Description
Events
CloseAllUIPanelsEvent
Property
Type
Description
Usage
Creating a Custom Panel
Implementing ICursorProvider
Closing All Panels
Last updated
Was this helpful?
