unity-xr

unity-xr is a skill for Claude Code, Codex from batihandev/unity-mcp-skills. It costs 51 tokens per session (1,961 once invoked), scanned A, original, MIT.

A Unity skill for building virtual- and augmented-reality interactions with the XR Interaction Toolkit. XR means extended reality, including virtual reality and augmented reality experiences.

In plain words
What is it for?
Use it to configure XR origins, interaction managers, grab interactions, teleportation, continuous movement, XR user interfaces, and controller feedback in Unity 6 with the required toolkit.
Why use it?
It provides the correct setup for player rigs, object grabbing, movement, teleportation, haptics, and in-world interfaces. This avoids using incorrect Unity component names or event patterns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure XR origins, interaction managers, grab interactions, teleportation, continuous movement, XR user interfaces, and controller feedback in Unity 6 with the required toolkit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/batihandev/unity-mcp-skills/xr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add batihandev/unity-mcp-skills --skill xr
Clone the repo
git clone --depth 1 https://github.com/batihandev/unity-mcp-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for unity-xr

README.md
[![agentmods](https://agentmods.dev/badge/skills/batihandev/unity-mcp-skills/xr/github.svg)](https://agentmods.dev/skills/batihandev/unity-mcp-skills/xr)
Your own site
<a href="https://agentmods.dev/skills/batihandev/unity-mcp-skills/xr"><img src="https://agentmods.dev/badge/skills/batihandev/unity-mcp-skills/xr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for unity-xr

Your own site · 80×15
<a href="https://agentmods.dev/skills/batihandev/unity-mcp-skills/xr"><img src="https://agentmods.dev/badge/skills/batihandev/unity-mcp-skills/xr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,961 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01961
Opus 5 $0.00026 $0.00981
Sonnet 5 $0.00010 $0.00392
Haiku 4.5 $0.00005 $0.00196

Measured 10d ago against content hash 71a0ef7d166a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

unity-xr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/xr/SKILL.md · 176 lines

How it starts

The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Unity XR Interaction Toolkit Skills

Requirements

  • com.unity.xr.interaction.toolkit (≥ 3.4). Recipes target XRI 3 API only. If missing, install via Unity_PackageManager_ExecuteAction with operation=Add, package=com.unity.xr.interaction.toolkit, version=3.4.1.

When to Use

Use this module for XR Interaction Toolkit setup and configuration.

Hard rule: Read this file before the first xr_* call in a session. Wrong property names can fail silently because the bridge is reflection-based.

Common Mistakes

DO NOT (common hallucinations):

  • XRHand, XRPlayer, XRTeleporter, GrabInteractor, VRController, XRLocomotion, and XRManager are not the runtime classes you want here
  • interactable.OnGrab() / OnRelease() are not the XRI event model -> use selectEntered / selectExited
  • controller.vibrate() is not the documented route here -> configure haptics through xr_configure_haptics
  • Do not assume physics Layer or Tag replaces InteractionLayerMask
  • Do not guess component property names — they are set via reflection. Use the skill parameters directly

Correct class names to anchor on:

  • XRInteractionManager
  • XROrigin
  • XRRayInteractor
  • XRDirectInteractor
  • XRSocketInteractor
  • XRGrabInteractable
  • XRSimpleInteractable
  • TeleportationProvider
  • TeleportationArea
  • TeleportationAnchor
  • ContinuousMoveProvider
  • SnapTurnProvider
  • ContinuousTurnProvider
  • TrackedDeviceGraphicRaycaster
  • XRUIInputModule
  • TrackedPoseDriver

Routing:

  • For non-XR Canvas UI creation -> use ui

Quick Reference

Setup and Diagnostics

Skill Use Key parameters
xr_check_setup Validate XR package, rig, managers, and scene prerequisites verbose?
xr_setup_rig Create XR Origin + camera + controllers name, cameraYOffset?
xr_setup_interaction_manager Add or find manager none
xr_setup_event_system Replace/add XR UI input stack none
xr_get_scene_report Report scene-side XR status none

Read the full file on GitHub · 176 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 176 lines · 51 tokens per session scan A 71a0ef7d166a

Subscribe to this mod's changes

unity-xr is a skill published in the GitHub repository batihandev/unity-mcp-skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 1,961 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

hz-unity-meta-movement-sdk-retargeting

Set up and tweak Meta Movement SDK (MSDK) retargeting for a character model. Use this whenever the user wants to retarget a humanoid FBX/prefab for Meta Quest body tracking, generate a retargeting config, or hand-edit the resulting .json (fix known-joint mappings, exclude joints from auto-mapping, rename target…

meta-quest/agentic-tools · 182 tokens

hz-unity-face-tracking

Drive ARKit-blendshape-rigged head/face models in Unity with the wearer's facial expressions on Meta Quest via Meta Movement SDK (face tracking + A2E). Use when a user has an FBX with the 52 ARKit blendshapes (any prefix, L/R suffixes) and wants it to animate from face tracking on Quest Pro / Quest 3 / Quest 3S.

meta-quest/agentic-tools · 92 tokens

hz-unity-meta-core-sdk

Meta XR Core SDK (com.meta.xr.sdk.core) for Unity XR development. Use when setting up VR/MR projects, configuring OVRManager, adding OVRCameraRig, enabling passthrough, hand tracking, spatial anchors, boundaryless mode, controller input, Scene API, or any Meta Quest XR feature. Covers OVRProjectSetup, AndroidManifest…

meta-quest/agentic-tools · 90 tokens

metavr-cli

Provides the complete metavr (Meta VR CLI) reference for Meta Quest and Horizon OS development — installation, device setup, command discovery, MCP server mode, documentation search, app deployment, device testing setup, audio control, screenshots, and performance analysis. Use when the user needs to install metavr…

meta-quest/agentic-tools · 85 tokens

hz-unity-passthrough-camera-access

Meta Quest Passthrough Camera Access (PCA) for Unity — access the forward-facing RGB cameras on Quest 3 / Quest 3S to feed Computer Vision and Machine Learning pipelines. Use when capturing the passthrough camera image/texture, reading the camera pose and intrinsics, projecting camera pixels into world space via…

meta-quest/agentic-tools · 197 tokens

animation-motion-capture

Implement motion capture integration and real-time synchronization.

LgrappaG/Workflows-Agents · 13 tokens