/meta-vr:hz-unity-meta-core-sdkfrom meta-vr
Configures Meta XR Core SDK for Unity VR/MR projects: OVRManager, OVRCameraRig, passthrough, hand tracking, spatial anchors, Scene API, and AndroidManifest generation via unity-cli.
Ships in meta-vr. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Meta XR Core SDK is the foundational Unity package for developing VR and MR applications targeting Meta VR devices. It provides the core XR rig, device management, input handling, and access to platform features like passthrough, hand tracking, spatial anchors, and scene understanding.
Package: com.meta.xr.sdk.core
unity-cliEverything here is Editor-only C#. Run it against an open Editor instead of hand-editing scene, manifest, or settings files. Connecting, --project-path, and Safe Mode recovery are in the unity-cli skill.
unity status --format json # look for state "ready"
unity command run_script --project-path <proj> --file AgentScripts/Setup.cs --entry Setup.Run --format json
Prefer run_script over eval — put the .cs outside Assets/ (path resolves against the project root) so writing it triggers no import or domain reload, and shell quoting can't mangle C# literals.
SDK-specific gotchas:
run_script references every loaded assembly, so OVRProjectSetup, OVRManifestPreprocessor etc. compile directly; using System.Reflection; and BindingFlags work for the internal bits (_principalRegistry, GetTasks).silentMode: true to anything that may open an EditorUtility.DisplayDialog — a modal blocks the request until it times out.FixAllAsync, Client.Add) — verify in a separate follow-up run_script; never Task.Wait() on the main thread.MarkSceneDirty + SaveScene (+ AssetDatabase.SaveAssets()), then read the value back.The package com.meta.xr.sdk.core may be located in different places depending on the project setup:
Library/PackageCache/com.meta.xr.sdk.core@<hash>/ (cached from registry)Packages/com.meta.xr.sdk.core/ (local package reference)Before searching for SDK source, first locate the package root by searching for a known file by filename pattern:
**/com.meta.xr.sdk.core*/Scripts/OVRManager.cs
Then use the resolved parent path for all subsequent search operations.
Any time you modify OVRProjectConfig or OVRManager feature settings (hand tracking, passthrough, boundaryless, target devices, etc.), you MUST call GenerateOrUpdateAndroidManifest() and verify the result. See references/android-manifest.md for the full workflow.
| Component | Purpose |
|---|---|
| OVRCameraRig | Primary XR rig prefab replacing Unity's Main Camera |
| OVRManager | Singleton managing device state, features, and configuration |
| OVRInput | Unified API for controller input and tracking |
| OVROverlay | Compositor layers for sharper text, UI, and video |
| OVRPassthroughLayer | Enables passthrough visualization |
| OVRSpatialAnchor | World-locked spatial anchors |
| OVRBoundary | Guardian boundary system access |
| OVRProjectSetup | Project Setup Tool for configuration tasks |
The OVRCameraRig prefab is the primary GameObject to add to create a VR/MR scene. It replaces Unity's conventional Main Camera and provides:
The OVRCameraRig hierarchy includes eye anchors, hand/controller anchors, and multimodal anchors. To see the current structure, inspect the OVRCameraRig prefab or instantiate it in a scene and examine the TrackingSpace children.
When working with a scene that needs XR support:
OVRManager (OVRManager.cs) is the main interface to VR hardware. It is a singleton attached to the OVRCameraRig prefab that exposes the Meta XR SDK to Unity. It controls:
To understand what features are available and how they're configured, analyze the OVRManager component on the OVRCameraRig in the scene. The OVRManager Inspector exposes all configurable XR features grouped into sections.
For the full settings reference (tracking origin, passthrough, boundary, hand tracking on OVRProjectConfig, etc.), see references/ovr-manager.md.
To change a serialized field on any component, edit it via SerializedObject + FindProperty(name) + ApplyModifiedProperties() — never reflection (FieldInfo/PropertyInfo.SetValue). Reflection mutates the in-memory object but bypasses serialization: for a component on a prefab instance (e.g. OVRManager on OVRCameraRig), the change isn't recorded as a prefab override and is silently dropped on save (SaveScene returns true, but the field reverts to the prefab default).
UnityEngine.Object (FindObjectOfType / GetComponent); SerializedObject/FindProperty work by name, so no asmref is needed.[SerializeField] backing field (often _camelCase), not the public property. If FindProperty returns null, discover names by iterating so.GetIterator() (Next(true) → log propertyPath).ApplyModifiedProperties(), call MarkSceneDirty → SaveScene → SaveAssets, then read the field back to confirm it persisted.// component obtained as UnityEngine.Object (e.g. FindObjectOfType(type) as Object)
var so = new SerializedObject(component);
so.FindProperty("_SERIALIZED_FIELD_NAME").boolValue = true; // typed accessor: boolValue/floatValue/intValue/...
so.ApplyModifiedProperties(); // records the prefab-instance override + marks dirty
var scene = EditorSceneManager.GetActiveScene();
EditorSceneManager.MarkSceneDirty(scene);
EditorSceneManager.SaveScene(scene);
AssetDatabase.SaveAssets();
// verify before declaring success
var check = new SerializedObject(component).FindProperty("_SERIALIZED_FIELD_NAME").boolValue;
The Unity Project Setup Tool (UPST) (OVRProjectSetup) is a Unity Editor extension that validates project configuration for Meta VR. It maintains a registry of Configuration Tasks — each task checks a specific setting and reports whether it is satisfied or outstanding.
Primary use: list all outstanding issues for the current platform, then fix them.
IsDone is false. Each issue has a level (Required, Recommended, Optional), a group (Compatibility, Rendering, Features, etc.), and a fix type (Auto-fix or Manual).FixAllAsync(BuildTargetGroup) to auto-fix all fixable issues, or invoke individual FixAction delegates directly.Drive UPST programmatically against a live Editor with unity-cli (see references/project-setup-tool.md for the full API, task registry access, property reading, and fix invocation patterns).
Access via UI: Meta > Tools > Project Setup Tool.
After UPST is green, prove it on hardware: build an APK, metavr app install <apk>, and confirm the expected features initialized in a metavr log --tag Unity snapshot.
NEVER directly edit AndroidManifest.xml for features managed by OVRProjectConfig. See references/android-manifest.md for the full manifest update workflow and rules.
Passthrough provides real-time visualization of the physical world inside the headset, enabling mixed reality experiences. See references/passthrough.md for setup steps and configuration.
Hand tracking enables natural hand interaction without controllers. See references/hand-tracking.md for setup and configuration.
Spatial anchors anchor virtual content to real-world locations that persist across sessions.
For spatial anchors details, see references/spatial-anchors.md.
Scene provides access to the user's physical environment model (walls, floor, furniture) for scene-aware MR experiences.
For Scene API details, see references/scene-api.md.
Boundaryless mode disables the Guardian boundary for MR experiences where the physical world is visible.
For boundaryless setup, see references/boundaryless.md.
OVROverlay renders textures directly via the VR compositor, bypassing eye buffer resampling for sharper text, UI, and video. Supports up to 15 overlay layers per scene with quad, cylinder, cubemap, equirect, and fisheye shapes.
For compositor layer details, see references/ovr-overlay.md.
OVRInput provides unified access to controller buttons, triggers, thumbsticks, and tracking.
For controller input details, see references/controller-input.md.
For the full project setup workflow (install SDK, set build platform, configure XR provider, add OVRCameraRig, configure OVRManager, generate AndroidManifest), see references/project-setup-workflow.md.
All documentation references point to the official Meta developer docs at developers.meta.com:
If the metavr MCP server is available, use the mcp__metavr__vr_docs_search and mcp__metavr__vr_docs_get_page tools to verify current API details, as Meta SDK documentation updates frequently. Use mcp__metavr__vr_api_search with engine='unity' to look up exact method signatures for OVRManager, OVRCameraRig, OVRInput, and other classes.
unity-cli — drive a live Editor, install editors, build/testhz-unity-meta-interaction-sdk — interaction layer (grab, poke, teleport, interaction rig)hz-xr-simulator-install-and-configure / hz-vr-debug — run and debug beyond Play modereferences/android-manifest.md (opens in a new tab)references/boundaryless.md (opens in a new tab)references/controller-input.md (opens in a new tab)references/hand-tracking.md (opens in a new tab)references/ovr-camera-rig.md (opens in a new tab)references/ovr-manager.md (opens in a new tab)references/ovr-overlay.md (opens in a new tab)references/passthrough.md (opens in a new tab)references/project-setup-tool.md (opens in a new tab)references/project-setup-workflow.md (opens in a new tab)references/scene-api.md (opens in a new tab)references/spatial-anchors.md (opens in a new tab)references/unity-mcp-fallback.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub meta-quest/agentic-tools --plugin meta-vr36 skills in this plugin
/hz-android-2d-portingGuides porting existing Android 2D apps to Meta VR and Horizon OS — input adaptation, panel layout, and design requirements. Use when adapting a mobile Android app for Meta VR. For UI design decisions, use hz-panel-designer if available. Build path: Standard Android; use hz-quest-verify-first if the build path is unclear./hz-api-upgradeUpgrades Meta VR apps to newer Horizon OS SDK versions — migration guides, deprecated API replacements, changelog. Use when updating SDK versions or fixing deprecated API warnings. Build paths: all Meta VR app stacks; use hz-quest-verify-first if the build path is unclear./hz-immersive-designerGuides design of comfortable, intuitive VR/MR experiences for Meta VR and Horizon OS — comfort guidelines, interaction patterns, spatial layout, accessibility. Use during UX design review or when evaluating comfort and accessibility. Build paths: Meta Spatial SDK, Unity, Unreal, native OpenXR, and WebXR; for 2D panel apps use hz-panel-designer if available. Use hz-quest-verify-first if the build path is unclear./hz-iwsdk-webxrBuilds WebXR experiences for Meta VR and Horizon OS using the Immersive Web SDK (IWSDK) — ECS architecture, Three.js integration, spatial UI. Use when creating web-based VR/MR apps for Quest Browser./hz-metavrx-layout-sdkBuild multi-window Meta Horizon OS experiences with the MetaVrx Layout SDK in Jetpack Compose or React Native. Covers framework selection, setup, anchoring, semantic offsets, window promotion, fallback, priority, lifecycle, and theming. Use for apps that need multiple app-owned panels without an immersive scene. Build path: Standard Android, including React Native; use hz-quest-verify-first if the path is unclear, and do not use this skill for immersive Spatial SDK scenes./hz-metavrx-ui-setBuilds app UI for Meta VR and Horizon OS with the MetaVrx UI Set, a Jetpack Compose component library and design system. Covers UiSetTheme, buttons, cards, controls, dialogs, dropdowns, inputs, side navigation, sliders, tooltips, the Icons.Regular library, Gradle setup, and migration from the Spatial SDK UI Set. Build path: Standard Android; use hz-quest-verify-first if the path is unclear.2 plugins ship this exact skill · first indexed Sep 24, 2026
Other plugins' skills for the same job