pop_common_ui_widget
Pops the active screen off a live CommonUI stack or clears the entire stack, enabling headless menu state machine navigation in Unreal Engine PIE sessions.
Instructions
Pop the ACTIVE screen off a live CommonUI stack, or clear the whole stack -- the inverse of push_common_ui_widget and the other half of driving a menu state machine headless (open, go deeper, come back, assert what is on top). WARNING: RUNTIME ONLY, same as the push: with no PIE session there is nothing on any stack. Popping an empty stack is an honest success with popped:false, not an error.
Returns: { stack_widget_name, popped: bool, popped_widget: string, cleared_all: bool, widget_count: int, active_widget: string } -- widget_count and active_widget are read AFTER the operation; popped:false with widget_count:0 means the stack was already empty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| world | No | Optional world selector: absent/'pie' | 'server' | 'client' | 'pie:N'. | |
| clear_all | No | Remove EVERY widget instead of just the active one (default false). | |
| player_index | No | Optional local player index whose viewport widgets are searched (default 0). | |
| stack_widget_name | Yes | Name of the live activatable container in the running session. |