Skip to content

GetOrder

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.

int GetOrder(PrismaView view);
  • Type: PrismaView
  • Description: The PrismaView from which to get the rendering order
  • Type: int
  • Returns: The current order value of the view
// Get current order of a view
int currentOrder = PrismaUI->GetOrder(view);
SKSE::log::info("View order: {}", currentOrder);
  • Debugging Tool: Use for logging and debugging layer hierarchies
  • Conditional Logic: Use order comparisons for layer-dependent behavior