unity-xr

Automate XR Origin rig creation and interactor configuration for Unity projects.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/Yuan-Zzzz/FrogRE --skill unity-xr-yuan-zzzz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-xr
Source: https://github.com/Yuan-Zzzz/FrogRE/tree/main/.codex/skills/unity-skills/skills/xr
Command: npx skills add https://github.com/Yuan-Zzzz/FrogRE --skill unity-xr-yuan-zzzz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity XR development often requires setting up XR rigs, interactor components, and UI integration across multiple XR Toolkit versions, which can be error-prone and time-consuming for teams.

Core Features & Use Cases

  • Automates creation of an XR Origin rig (head, camera, and controllers) and adds necessary XR components.
  • Provides utilities to add XRRayInteractor and XRDirectInteractor, configure locomotion (teleport, continuous movement), and wire up XR UI canvases.
  • Ensures cross-version compatibility (XRI 2.x and 3.x) through reflection-based adapters to minimize recompilation and API drift.
  • Supports basic diagnostics and scene validation for XR readiness.

Quick Start

Initialize an XR scene by validating the project, creating the XR Origin rig, and enabling basic controller interactions.

Frequently Asked Questions about unity-xr

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

FAQPage Schema
How do I automate XR scene setup and interaction configuration in Unity?

Automating Unity XR scene setup involves creating an XR Origin rig with head, camera, and controllers, then adding interactors and locomotion systems. This Skill handles that configuration automatically.

Does the Unity XR Interaction Toolkit support both XRI 2.x and 3.x versions?

The Unity XR Interaction Toolkit supports XRI 2.x and 3.x. This Skill handles cross-version compatibility using reflection-based adapters to prevent API drift without recompilation.

What do I need to add XR ray and direct interactors to my VR rig?

Adding XR ray and direct interactors requires the Unity XR Interaction Toolkit package. This Skill provides utilities to configure these interactor components on your XR Origin rig controllers.

Can I configure teleportation and continuous movement for AR and VR projects in Unity?

Configuring teleportation and continuous movement in Unity is supported for VR and AR. This Skill automates locomotion setup by applying the necessary components to your XR Origin rig.

How do I validate XR readiness and diagnose scene setup issues in Unity?

Validating XR readiness in Unity requires checking project configuration. This Skill provides basic diagnostics and scene validation utilities to ensure all necessary XR components are properly applied.

Why does manual Unity XR rig creation cause API drift across multiple XR Toolkit versions?

Manual Unity XR rig creation causes API drift because XRI 2.x and 3.x have different APIs. This Skill avoids recompilation errors by using reflection-based adapters to support both versions seamlessly.