create_xr_rig
Create an XR Origin camera rig for XREAL One Pro, setting up head-mounted display camera, hand tracking origins, and interaction components like ray and direct interactors.
Instructions
Creates an XR Origin (camera rig) configured for XREAL One Pro. Sets up the head-mounted display camera, hand tracking origins, and interaction components.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rigName | No | Name for the XR Origin GameObject | XR Origin (XREAL) |
| position | No | Initial position for the XR Origin | |
| prefabPath | No | Path to save prefab (if createAsPrefab is true) | |
| cameraYOffset | No | Camera Y offset for floor-level tracking (typically 1.36m for standing) | |
| createAsPrefab | No | Save the rig as a prefab after creation | |
| addUIInteraction | No | Add UI interaction components | |
| addRayInteractors | No | Add ray interactors for distant selection | |
| addHandControllers | No | Add hand tracking controller objects | |
| trackingOriginMode | No | Tracking origin reference | Device |
| addLocomotionSystem | No | Add locomotion system components | |
| addDirectInteractors | No | Add direct interactors for touch/grab |