Skip to content

Focus

Sets input focus to the specified PrismaView and shows the cursor. This method activates the UI for user interaction and optionally pauses the game to provide an uninterrupted interface experience.

bool Focus(PrismaView view, bool pauseGame = false, bool disableFocusMenu = false);
  • Type: PrismaView
  • Description: The PrismaView to receive focus
  • Type: bool
  • Default: false
  • Description: Optional parameter to pause the game when focus is active
  • Type: bool
  • Default: false
  • Description: If true, sets focus without activating the FocusMenu overlay. Available since 1.2.0.
  • Type: bool
  • Returns: true if focus was successfully set; otherwise, false
// Simple focus without pausing the game
bool success = PrismaUI->Focus(view);
if (success) {
SKSE::log::info("View focused successfully");
} else {
SKSE::log::error("Failed to focus view");
}
  • Game Pause Management: Use pauseGame = true for menus that require full user attention
  • FocusMenu Control: Use disableFocusMenu = true when you want focus without the overlay menu
  • Focus Pairing: Always pair Focus calls with corresponding Unfocus calls