add_widget_interaction_component
Add a Widget Interaction component to a Blueprint to enable VR laser-pointer interaction with UMG widgets placed in the world.
Instructions
Add a Widget Interaction component for VR UI interaction.
From Ch. 16: The Widget Interaction component works like a laser pointer, allowing the user to interact with UMG Widget Blueprints placed in the world. Used in the VR menu system activated by the Menu button.
Args: blueprint_name: Blueprint to add the component to component_name: Component name interaction_distance: Max distance for widget interaction (UE units) show_debug: Show debug visualization beam
KB: see knowledge_base/10_WORLD_BUILDING.md#overview Example: add_widget_interaction_component(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| show_debug | No | ||
| blueprint_name | Yes | ||
| component_name | No | WidgetInteraction | |
| interaction_distance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |