GetOrder
Overview
Section titled “Overview”Returns the current rendering order (z-order) for the specified PrismaView. This method allows you to query a view’s position in the rendering stack, which is useful for managing UI layers and debugging rendering issues.
Syntax
Section titled “Syntax”int GetOrder(PrismaView view);Parameters
Section titled “Parameters”view (required)
Section titled “view (required)”- Type:
PrismaView - Description: The
PrismaViewfrom which to get the rendering order
Return Value
Section titled “Return Value”- Type:
int - Returns: The current order value of the view
Usage Examples
Section titled “Usage Examples”// Get current order of a viewint currentOrder = PrismaUI->GetOrder(view);
SKSE::log::info("View order: {}", currentOrder);Best Practices
Section titled “Best Practices”- Debugging Tool: Use for logging and debugging layer hierarchies
- Conditional Logic: Use order comparisons for layer-dependent behavior