Skip to content

Hide

Hides a visible PrismaView. This method sets the view’s visibility flag to prevent it from being rendered, while preserving its state and resources. If the view has focus when hidden, it will be automatically unfocused.

void Hide(PrismaView view);
  • Type: PrismaView
  • Description: The PrismaView to hide

This method returns void.

// Hide a visible view
PrismaUI->Hide(view);
  • Sets the isHidden flag to true
  • View stops rendering immediately
  • View stops processing input events
  • If view has focus, automatically calls Unfocus:
    • Unpauses the game (if paused by Focus)
    • Disables input capture
    • Closes focus menu
    • Restores game control
  • View state and content are preserved
  • Temporary Hiding: Use for UI that will be shown again
  • State Preservation: Hidden views keep their state and content
  • Focus Awareness: Remember that hiding automatically unfocuses
  • Performance: More efficient than destroying and recreating views
  • Pair with Show: Use Show to make hidden views visible again