Unfocus
Overview
Section titled “Overview”Removes input focus from the specified PrismaView
and hides the cursor. This method deactivates the UI and returns control to the game, automatically resuming the game if it was previously paused by the Focus
method.
Syntax
Section titled “Syntax”void Unfocus(PrismaView view);
Parameters
Section titled “Parameters”view
(required)
Section titled “view (required)”- Type:
PrismaView
- Description: The
PrismaView
from which to remove focus
Return Value
Section titled “Return Value”This method returns void
.
Usage Examples
Section titled “Usage Examples”// Simple unfocus operationPrismaUI->Unfocus(view);logger::info("View unfocused - control returned to game");
Best Practices
Section titled “Best Practices”- Paired Operations: Always pair
Focus
andUnfocus
calls appropriately - Input Management: Use
Unfocus
to return game input control to the player