set_box_slot_properties
Configure box-slot alignment, padding, and fill size for a widget child of HorizontalBox, VerticalBox, Overlay, Border, SizeBox, or ScrollBox in Unreal Engine.
Instructions
Configure a widget's box-family slot layout (alignment/padding/size). Applies when the widget is parented under a HorizontalBox/VerticalBox/Overlay/Border/SizeBox/ScrollBox; dispatches by the concrete slot type. Size only applies to Horizontal/Vertical/ScrollBox slots -- on the others it is returned as an honest note. For a CanvasPanel child use set_widget_slot_properties; for a GridPanel child use set_grid_slot_properties.
Returns: { widget_bp_path: string, widget_name: string, slot_type: string, settings_applied: object, applied_count: int, notes: [string], saved: bool, save_error: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Optional. This command is REFUSED while a Play-in-Editor session is running: it either compiles a Blueprint (the reinstancer can retain a world, and CheckForWorldGCLeaks is Fatal -- it KILLS the editor) or writes to disk (Editor.AllowSavingAssetsDuringPIE=0 makes the engine refuse the write, so it would report success without writing a byte). Stop PIE and retry instead; force=true runs it anyway, at your own risk. | |
| padding | No | Optional [Left, Top, Right, Bottom] floats (also accepts [uniform] or [horizontal, vertical]). | |
| size_rule | No | Optional Fill | Auto (Horizontal/Vertical/ScrollBox slots only). | |
| size_value | No | Optional float fill weight (used with size_rule = Fill; default 1.0). | |
| widget_name | Yes | name of the child widget whose box slot to edit | |
| blueprint_name | No | Alias of `widget_bp_path` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `widget_bp_path`. | |
| widget_bp_path | No | /Game path of the Widget Blueprint asset | |
| vertical_alignment | No | Optional alignment: Fill | Top | Center | Bottom | |
| horizontal_alignment | No | Optional alignment: Fill | Left | Center | Right |