push_common_ui_widget
Push a CommonUI widget onto a live activatable stack during PIE to drive menu states and verify the resulting active screen.
Instructions
Push a screen onto a LIVE CommonUI activatable stack in the running PIE session -- the operation that lets a menu state machine be driven to a specific state and then asserted. create_common_ui_stack only puts the stack in place; its contents are populated at runtime with AddWidget, which this calls headless, so "open the pause menu, then the options page, now check the back button" is reproducible. WARNING: RUNTIME ONLY: the container's widget list and its widget pool are Transient, so with no PIE session there is genuinely nothing to push onto and this says so rather than pretending. The pushed widget is activated by the stack itself; read the result with get_common_ui_stack or read_pie_widgets, and move focus into it with set_pie_widget_focus.
Returns: { stack_widget_name, pushed_class, pushed_widget: string, widget_count: int, active_widget: string } -- widget_count and active_widget are read off the stack AFTER the push, so they are evidence rather than an echo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| world | No | Optional world selector: absent/'pie' | 'server' | 'client' | 'pie:N'. | |
| player_index | No | Optional local player index whose viewport widgets are searched (default 0). | |
| widget_class | Yes | The UCommonActivatableWidget class to push: a /Game Widget Blueprint path, its generated-class path, or a native class path. | |
| stack_widget_name | Yes | Name of the live UCommonActivatableWidgetStack (or any activatable container) in the running session. Resolved like click_pie_widget, nested Widget Blueprints included. |