create_xr_ui
Configure and create a world-space UI canvas for XR interaction, with options for scaling, raycasting, and visual settings to enable comfortable mixed reality viewing.
Instructions
Creates a world-space UI canvas configured for XR interaction. Sets up proper scaling, interaction raycasting, and visual settings for comfortable viewing in mixed reality.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Canvas width in meters | |
| height | No | Canvas height in meters | |
| position | No | World position for the canvas | |
| rotation | No | Euler rotation for the canvas | |
| canvasName | No | Name for the UI Canvas GameObject | XR Canvas |
| followHead | No | UI follows head movement (tag-along behavior) | |
| curveRadius | No | Curve radius in meters (if curved) | |
| curvedCanvas | No | Use curved canvas for better peripheral visibility | |
| lookAtCamera | No | UI always faces the camera | |
| followDistance | No | Distance to maintain when following head | |
| pixelsPerMeter | No | UI resolution (pixels per meter) | |
| interactionType | No | How users interact with this UI | Both |
| addSampleContent | No | Add sample UI elements (button, slider, text) |