set_pie_window_size
Set the Play-In-Editor window size before launching PIE to test UI layouts at specific resolutions. Applies to the next PIE session, enabling reproduction of resolution-dependent widget bugs.
Instructions
Set the size of the Play-In-Editor window, so a UI can be checked at more than whatever resolution the window happens to have. start_play_in_editor takes no size parameter, so without this the classic UI bug -- fine at 1920x1080, overlapping at 1280x720 -- cannot be reproduced headless. Writes ULevelEditorPlaySettings, the same setting the editor's Play dropdown edits, and it applies to the NEXT PIE session: one already running keeps its window. For a single Widget Blueprint you do not need PIE at all -- render_widget_preview takes width/height/scale directly.
Returns: { width: int, height: int, center: bool, applies_to: string, pie_currently_active: bool } -- applies_to is always "next PIE session"; WARNING: pie_currently_active:true is the warning that what is on screen RIGHT NOW is not what you just set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Window width in pixels (clamped to 160..7680). | |
| center | No | Center the new window on screen (default true). | |
| height | Yes | Window height in pixels (clamped to 120..4320). |