create_grab_component
Adds a GrabComponent to any actor to enable VR object grabbing. Configure Free, Snap, or Custom grab types for motion controller attachment and predefined grip poses.
Instructions
Create a GrabComponent Scene Component for VR object grabbing.
From Ch. 16: The GrabComponent is added to any Actor you want to be grabbable in VR. It handles attachment to the motion controller and supports multiple grab types.
Grab Types (from the book):
"None": Grabbing disabled (without removing component)
"Free": Object attaches at current relative position (cubes, balls)
"Snap": Object snaps to predefined grip location/rotation (weapons)
"Custom": Use OnGrabbed/OnDropped event dispatchers for custom logic
The Actor must have Mobility set to Movable.
Args: name: Component Blueprint name default_grab_type: Default grab type ("Free", "Snap", "None", "Custom") folder_path: Content browser folder
KB: see knowledge_base/10_WORLD_BUILDING.md#overview Example: create_grab_component()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | BP_GrabComponent | |
| folder_path | No | /Game/VR/Blueprints | |
| default_grab_type | No | Free |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |