unity-xr

Configure XR Interaction Toolkit rigs, interactors, and locomotion for Unity VR/AR scenes.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/Dylan8865/FinalYearProject --skill unity-xr-dylan8865
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-xr
Source: https://github.com/Dylan8865/FinalYearProject/tree/main/GameDev/Tester/.agents/skills/unity-skills/skills/xr
Command: npx skills add https://github.com/Dylan8865/FinalYearProject --skill unity-xr-dylan8865

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires com.unity.xr.interaction.toolkit, and includes references (resource) components.

What problem does it solve? Setting up VR/AR interaction in Unity requires precise XR Interaction Toolkit (XRI) configuration, where wrong component names or property values fail silently. This Skill provides verified workflows and reflection-safe skills to build XR rigs, grab interactions, teleportation, and XR UI without hallucinated APIs. ## Core Features & Use Cases - XR Rig Setup: Create XR Origin, camera, controllers, interaction manager, and XR UI event system with validated scene diagnostics. - Interaction Configuration: Add ray, direct, and socket interactors plus grab/simple interactables with correct collider and movement-type rules. - Locomotion & UI: Configure teleportation areas/anchors, continuous movement, snap/smooth turning, haptics, and world-space XR canvases. - Use Case: When a user asks to "make this cube grabbable in VR" or "set up teleport locomotion", the Skill runs xr_check_setup, builds the rig, and wires interactors with verified XRI 2.x/3.x property names. ## Quick Start Ask the AI to set up an XR rig with a ray interactor on the right controller and make a cube grabbable using velocity tracking movement.

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 in Unity with XR Interaction Toolkit?▼

Run xr_check_setup to validate the scene, then xr_setup_rig to create the XR Origin with camera and controllers. Add interactors per controller and call xr_setup_event_system so XR UI input works.

How to make an object grabbable in Unity VR?▼

Use xr_add_grab_interactable on the object, which adds a Rigidbody, non-trigger collider, and XRGrabInteractable. Pair it with a direct interactor for hand grab or a ray interactor for distance grab, choosing VelocityTracking, Kinematic, or Instantaneous movement.

Does this work with XRI 3.x on Unity 6?▼

Yes, all xr_* skills are reflection-based and support XRI 2.x on Unity 2022 and XRI 3.x on Unity 6+. The reflection helper prefers 3.x APIs first and falls back automatically for 2.x.

Why is my XR grab interactable not responding to the controller?▼

The most common cause is wrong collider configuration: grab interactables need a non-trigger collider and a Rigidbody, while direct interactors need a trigger collider on the same GameObject. Also verify exactly one XRInteractionManager exists in the scene.

What is the difference between TeleportationArea and TeleportationAnchor?▼

TeleportationArea lets the player land anywhere on a surface such as floors or terrain, while TeleportationAnchor defines a fixed destination point like a seat or waypoint. Anchors can also control the player's facing orientation on arrival.