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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_xr_ui"
}
}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) |