Skip to content

IsHidden

Checks if the specified PrismaView is currently hidden. This method allows you to query a view’s visibility state, which is useful for conditional UI logic and state management.

bool IsHidden(PrismaView view);
  • Type: PrismaView
  • Description: The PrismaView to check for hidden state
  • Type: bool
  • Returns: true if the view is hidden (or not found), false if the view is visible
// Check if view is hidden
if (PrismaUI->IsHidden(view)) {
SKSE::log::info("View is hidden");
}
  • Returns true if the view’s isHidden flag is set to true
  • Returns false if the view is visible
  • Returns true if the view is not found (with a warning logged)
  • State Validation: Check visibility before show/hide operations
  • Conditional Logic: Use for UI state-dependent behavior
  • Toggle Operations: Essential for implementing toggle functionality
  • Error Handling: Check for true return with invalid views