unity-xr

Configure XR rigs, interactions, locomotion, and UI using Unity's XR Interaction Toolkit.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/krl76/MP-Study-Projects --skill unity-xr-krl76
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-xr
Source: https://github.com/krl76/MP-Study-Projects/tree/main/Practice1/.codex/skills/unity-skills/skills/xr
Command: npx skills add https://github.com/krl76/MP-Study-Projects --skill unity-xr-krl76

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity XR workflows can be complex to assemble manually. This Skill provides a structured set of reflection-based routines to configure XR Origin, cameras, controllers, interactables, and UI, enabling consistent XR initialization across projects.

Core Features & Use Cases

  • Setup and diagnostics for XR packages and scene prerequisites
  • Interactor and interactable creation including ray, direct, socket, and grab configurations
  • Locomotion and UI wiring such as teleportation, continuous movement, and XR UI canvas setup

Quick Start

Create a minimal XR scene by validating the setup, then build an XR Origin with a camera and controllers, add a ray interactor for pointer, and attach a grabbable object.

Frequently Asked Questions about unity-xr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up an XR rig with Unity XR Interaction Toolkit?

To set up an XR rig, configure the XR Origin, cameras, and controllers using reflection-based routines that validate scene prerequisites. This creates a consistent VR/AR initialization foundation for interactables and locomotion across Unity projects.

What's the best way to configure grab interactables and ray pointers in Unity XR?

Configuring grab interactables and ray pointers involves creating interactors like direct, socket, and ray configurations. This wires object manipulation and pointer interactions into the XR Origin, enabling functional VR grab workflows.

How do I add teleportation and continuous movement to a Unity VR project?

Adding teleportation and continuous movement requires wiring locomotion components into the XR Origin. This enables seamless navigation across VR environments by configuring movement providers within the Unity XR Interaction Toolkit.

Does this XR setup workflow support both XR Interaction Toolkit 2.x and 3.x?

Yes, the XR setup workflow supports both XR Interaction Toolkit 2.x and 3.x. It achieves compatibility through reflection-based routines, requiring the com.unity.xr.interaction.toolkit package to validate and configure components.

Why do I need to validate XR packages before building a Unity VR scene?

Validating XR packages before building a Unity VR scene ensures all prerequisites are met. The xr_check_setup workflow inspects the environment to prevent configuration errors when assembling the XR Origin, interactables, and UI.

Can I set up XR UI canvases for VR interaction using this Unity workflow?

Yes, you can set up XR UI canvases for VR interaction. The workflow configures UI components to respond to ray interactors, allowing users to interact with Unity canvases using VR controllers.