hide method
void
hide()
Hides the modal by removing it from the game's viewport. Calls onBeforeUnloadStatic before unloading.
Implementation
void hide() {
onBeforeUnloadStatic?.call(this);
return game.camera.viewport.remove(this);
}