bind_widget_component_event
Bind a named sub-widget's event delegate (e.g., OnClicked) in a Widget Blueprint by full path, auto-promoting the sub-widget to a variable when needed for UMG event wiring.
Instructions
Create or reuse a component-bound event node for a named sub-widget.
Use this for precise UMG event wiring on named widget variables such as Button.OnClicked, Button.OnHovered, or Slider.OnValueChanged. Unlike the legacy bind_widget_event route, this resolves the Widget Blueprint by full path, promotes the sub-widget to a Blueprint variable when needed, and binds the delegate to that specific widget property.
Args: widget_blueprint_path: Full Widget Blueprint asset path. widget_name: Named sub-widget in the WidgetTree, e.g. "BTN_Start". event_name: Delegate property name, e.g. "OnClicked". compile: Whether the native route should compile/save after binding.
Returns: Structured result with node_id, created, and variable_promoted.
KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#event-driven-widget-workflows Example: bind_widget_component_event(widget_blueprint_path="/Game/UI/WBP_MainMenu", widget_name="BTN_Start", event_name="OnClicked")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compile | No | ||
| event_name | Yes | ||
| widget_name | Yes | ||
| widget_blueprint_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |