add_motion_controller_component
Add a Motion Controller component to a Blueprint for VR hand tracking. Specify motion source and whether to display the device model.
Instructions
Add a Motion Controller component to a Blueprint.
From Ch. 16: Motion Controller components track the physical VR controller position and rotation in real-time. The VR template uses pairs of controllers:
Grip controllers (MotionControllerRight/Left) - default grip location
Aim controllers (MotionControllerRightAim/LeftAim) - pointer/aim location
MotionSource values: "Right", "Left", "RightAim", "LeftAim", "Head", "Special1" through "Special8"
Args: blueprint_name: Blueprint to add the component to component_name: Component name in the Components panel motion_source: Controller source ("Right", "Left", "RightAim", "LeftAim") display_device_model: Whether to render the controller mesh in game is_aim_controller: If True, hide device model (for aim-only controllers)
KB: see knowledge_base/10_WORLD_BUILDING.md#overview Example: add_motion_controller_component(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| motion_source | No | Right | |
| blueprint_name | Yes | ||
| component_name | No | MotionControllerRight | |
| is_aim_controller | No | ||
| display_device_model | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |