create_hand_interactable
Adds hand interaction components to a GameObject, enabling responses to gestures such as pinch-to-grab, poke, and hover. Configures colliders and scripts for interactivity.
Instructions
Adds hand interaction components to a GameObject, making it respond to hand gestures like pinch-to-grab, poke, or hover. Sets up the necessary colliders and interaction scripts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grabType | No | How the object moves when grabbed | Kinematic |
| pokeDepth | No | Depth required for poke interaction (meters) | |
| hoverDistance | No | Distance at which hover detection activates (meters) | |
| twoHandedGrab | No | Allow grabbing with both hands simultaneously | |
| hapticFeedback | No | Enable haptic feedback on interaction (if supported) | |
| highlightColor | No | Highlight color in hex format | #FFD700 |
| throwOnRelease | No | Apply velocity when releasing grabbed object | |
| interactionType | Yes | Type of hand interaction to enable | |
| throwMultiplier | No | Velocity multiplier for thrown objects | |
| highlightOnHover | No | Visually highlight object when hand hovers over it | |
| targetGameObject | Yes | Instance ID, name, or path of the GameObject to make interactable |