Table of Contents

Method CloseAllPanels

Namespace
GrindFest
Assembly
GrindFest.dll

CloseAllPanels()

Close every OneJS panel through its own close callback (__grindfest.closeMainMenu and friends). The callback names are derived from PanelIds - "panel-report-bug" becomes closeReportBug - so there is no second list to keep in sync.

Panels are application state, not spawned GameObjects: nothing else cleans them up, so a run that ends while a panel is open (or a test that opens one and forgets it) leaves it on screen for whatever runs next. Silent when there is no app around (editor-only contexts).

Closing is not the same as resetting: see ReloadApp() for the state a closed panel keeps.

public static void CloseAllPanels()