hz-unity-meta-mixed-reality-utility-kit

Meta XR 混合现实实用工具包 (MRUK, com.meta.xr.mrutilitykit),适用于 Unity XR 开发。在使用场景 API 数据(房间、墙壁、地板、家具)、在场景锚点上生成预制件、在现实世界中放置虚拟对象并世界锁定以防止锚点漂移、对房间几何体进行射线检测、从场景数据生成导航网格 (NavMesh)、进行环境深度射线检测以实现无需扫描的即时放置、访问穿透相机 (PCA)、可跟踪对象检测(如键盘、二维码)、可破坏场景网格、空间地图、多人房间共享或任何与 MR 场景感知相关的功能时使用此工具包。

仓库最近推送
GitHub Stars
269
Forks
25
Issues / PRs
8

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "hz-unity-meta-mixed-reality-utility-kit":https://skillpi.com/zh/skills/deepskill-c23e0d5d8c14e0da6645ed84477daabc4b560fc5c82d220e5979aaac110e012b。安装前核对上游来源和版本:https://github.com/meta-quest/agentic-tools。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

Meta XR 混合现实实用工具包 (MRUK, com.meta.xr.mrutilitykit),适用于 Unity XR 开发。在使用场景 API 数据(房间、墙壁、地板、家具)、在场景锚点上生成预制件、在现实世界中放置虚拟对象并世界锁定以防止锚点漂移、对房间几何体进行射线检测、从场景数据生成导航网格 (NavMesh)、进行环境深度射线检测以实现无需扫描的即时放置、访问穿透相机 (PCA)、可跟踪对象检测(如键盘、二维码)、可破坏场景网格、空间地图、多人房间共享或任何与 MR 场景感知相关的功能时使用此工具包。

0 下载

介绍来源: third_party · meta-quest · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: hz-unity-meta-mixed-reality-utility-kit
license: Apache-2.0
description: Meta XR Mixed Reality Utility Kit (MRUK) (com.meta.xr.mrutilitykit) for Unity XR development. Use when working with Scene API data (rooms, walls, floors, furniture), spawning prefabs on scene anchors, placing virtual objects in the real world, world locking to prevent anchor drift, raycasting against room geometry, generating NavMesh from scene data, environment depth raycasting for instant placement without scanning, Passthrough Camera Access (PCA), trackable detection (keyboards, QR codes), destructible scene meshes, space maps, room sharing for multiplayer, or any MR scene-aware feature.

Meta XR Mixed Reality Utility Kit (MR Utility Kit, MRUK, com.meta.xr.mrutilitykit)

The Meta XR Mixed Reality Utility Kit (MR Utility Kit, MRUK) is a Unity package that provides high-level tools on top of the Scene API for building scene-aware Mixed Reality (MR) experiences. It is designed to be used in conjunction with the Meta XR Core SDK. It handles scene data loading and querying, spawning prefabs on real-world surfaces, world locking to prevent anchor drift, environment raycasting for instant placement without scanning, passthrough camera access, NavMesh generation from room geometry, and trackable detection (keyboards, QR codes).

Package: com.meta.xr.mrutilitykit

Finding the SDK Source

The package com.meta.xr.mrutilitykit may be located in different places depending on the project setup:

  • Library/PackageCache/com.meta.xr.mrutilitykit@<hash>/ (cached from registry)
  • Packages/com.meta.xr.mrutilitykit/ (local package reference)
  • A custom on-disk path (embedded or local folder)

Before searching for SDK source, first locate the package root by searching for a known file by filename pattern:

**/com.meta.xr.mrutilitykit*/Core/Scripts/MRUK.cs

Then use the resolved parent path for all subsequent search operations.

Quick Reference

Task Class / Component Source File Key Entry Point
Load scene from device MRUK Scripts/MRUK.cs LoadSceneFromDevice()
Load scene from prefab/JSON MRUK Scripts/MRUK.cs LoadSceneFromPrefab(), LoadSceneFromJsonString()
Get current room MRUK Scripts/MRUK.cs GetCurrentRoom()
Prevent anchor drift MRUK Scripts/MRUK.cs EnableWorldLock = true
Query room geometry MRUKRoom Scripts/MRUKRoom.cs Raycast(), IsPositionInRoom()
Find surfaces / closest point MRUKRoom Scripts/MRUKRoom.cs TryGetClosestSurfacePosition(), GenerateRandomPositionOnSurface()
Get anchor properties MRUKAnchor Scripts/MRUKAnchor.cs Label, PlaneRect, VolumeBounds
Spawn prefabs on anchors AnchorPrefabSpawner Scripts/AnchorPrefabSpawner.cs PrefabsToSpawn, SpawnOnStart
Find random spawn positions FindSpawnPositions Scripts/FindSpawnPositions.cs StartSpawn(), SpawnLocations
27-slice mesh resizing GridSliceResizer Scripts/GridSliceResizer.cs ResizeTo(Vector3)
Generate visual meshes EffectMesh Scripts/EffectMesh.cs CreateMesh(), CutHoles
Breakable scene geometry DestructibleGlobalMeshSpawner Scripts/DestructibleGlobalMeshSpawner.cs CreateOnRoomLoaded
GPU distance field texture SpaceMapGPU Scripts/SpaceMapGPU.cs GetSpaceMap(), StartSpaceMap()
Boundary proximity fade RoomGuardian Scripts/RoomGuardian.cs GuardianDistance, GuardianMaterial
NavMesh from scene SceneNavigation Scripts/SceneNavigation.cs BuildSceneNavMesh()
Depth API raycasting EnvironmentRaycastManager Scripts/EnvironmentRaycastManager.cs Raycast(), PlaceBox()
Passthrough camera images PassthroughCameraAccess Scripts/PassthroughCameraAccess.cs GetTexture(), GetCameraPose()
Track keyboards / QR codes MRUKTrackable Scripts/MRUKTrackable.cs TrackableType, MarkerPayloadString
Instant placement (no scan) PointAndLocate Scripts/BuildingBlocks/InstantContentPlacement/ TryLocateSpace()
Share rooms (multiplayer) MRUK Scripts/MRUK.cs ShareRoomsAsync(), LoadSceneFromSharedRooms()

All source file paths are relative to the package root (see "Finding the SDK Source" above).

Architecture

Object Hierarchy

MRUK (singleton MonoBehaviour)
 └── MRUKRoom (child GameObjects, one per room)
      └── MRUKAnchor (children of rooms: walls, floors, furniture, etc.)
  • MRUK.Instance is the central hub. It loads scene data, manages rooms, handles world locking, and provides the SceneSettings configuration.
  • MRUKRoom represents a physical room. Provides spatial queries (raycasting, position checks, surface queries) and holds Anchors, WallAnchors, FloorAnchors, CeilingAnchors, GlobalMeshAnchor.
  • MRUKAnchor represents a single scene element (wall, table, couch, etc.). Has a Label (SceneLabels flags), optional PlaneRect (2D bounds), VolumeBounds (3D bounds), and PlaneBoundary2D (polygon points).
  • MRUKTrackable extends MRUKAnchor for runtime-detected objects (keyboards, QR codes).

Native Library

A C/C++ shared library handles world locking, anchor discovery, and coordinate conversion (OpenXR right-handed ↔ Unity left-handed). A hidden MRUKGlobalContext MonoBehaviour (DontDestroyOnLoad) ticks the native context every frame. You never call these directly.

Component Pattern

All feature components (AnchorPrefabSpawner, EffectMesh, FindSpawnPositions, SceneNavigation, SpaceMapGPU, RoomGuardian, DestructibleGlobalMeshSpawner) follow the same pattern:

  1. A SpawnOnStart / CreateOnStart / BuildOnSceneLoaded property of type MRUK.RoomFilter controls automatic initialization
  2. In Start(), they call MRUK.Instance.RegisterSceneLoadedCallback(...) which fires immediately if the scene is already loaded
  3. They also expose manual methods (CreateMesh(), StartSpawn(), BuildSceneNavMesh(), etc.) for programmatic control

Dependencies

  • Required: com.meta.xr.sdk.core (OVRCameraRig, OVRPlugin, OVRSpatialAnchor, OVRSemanticLabels)
  • com.unity.ai.navigation (for SceneNavigation)
  • com.unity.nuget.newtonsoft-json (for JSON scene serialization)

Key Enums

MRUKAnchor.SceneLabels (Flags)

FLOOR, CEILING, WALL_FACE, TABLE, COUCH, DOOR_FRAME, WINDOW_FRAME,
OTHER, STORAGE, BED, SCREEN, LAMP, PLANT, WALL_ART, GLOBAL_MESH,
INVISIBLE_WALL_FACE, UNKNOWN, INNER_WALL_FACE

Use as flags: SceneLabels.TABLE | SceneLabels.COUCH matches tables OR couches.

MRUKAnchor.ComponentType (Flags)

None = 0, Plane = 1, Volume = 2, All = Plane | Volume

Anchors can have plane geometry (2D rect), volume geometry (3D bounds), or both.

MRUK.SceneDataSource

Device                    // Load from device Scene API
Prefab                    // Load from room prefab GameObjects
DeviceWithPrefabFallback  // Device first, prefab if no scene data (recommended for dev)
Json                      // Load from JSON string
DeviceWithJsonFallback    // Device first, JSON if no scene data

MRUK.SurfaceType (Flags)

FACING_UP = 1    // Floors, table tops
FACING_DOWN = 2  // Ceilings, undersides
VERTICAL = 4     // Walls

MRUK.RoomFilter

None             // Don't auto-initialize
CurrentRoomOnly  // Only the room the user is in
AllRooms         // All loaded rooms

MRUK.SceneModel

V1               // Standard scene model
V2               // High Fidelity: multiple floors/ceilings, slanted ceilings, inner walls
V2FallbackV1     // Try V2, fall back to V1 if unsupported

LabelFilter

Struct for filtering anchors by label and component type. Used in raycast, surface query, and spawn methods.

var filter = new LabelFilter(SceneLabels.TABLE | SceneLabels.COUCH, ComponentType.Volume);
bool passes = filter.PassesFilter(anchor.Label);

MRUK.PositioningMethod

DEFAULT  // Standard positioning
CENTER   // Center of surface (e.g., center of table for chess board)
EDGE     // Edge of surface (e.g., edge of table for piano)

Core Classes

MRUK (Singleton)

Key Properties: Instance (static), IsInitialized, Rooms (List\<MRUKRoom>), EnableWorldLock, IsWorldLockActive, TrackingSpaceOffset, SceneSettings

Key Methods:

  • GetCurrentRoom() → MRUKRoom
  • RegisterSceneLoadedCallback(UnityAction) — fires immediately if already loaded
  • LoadSceneFromDevice(SceneModel) → Task\<LoadDeviceResult>
  • LoadSceneFromPrefab(GameObject) → Task\<LoadDeviceResult>
  • LoadSceneFromJsonString(string) → Task\<LoadDeviceResult>
  • SaveSceneToJsonString() → string
  • ClearScene()
  • HasSceneModel() → Task\<bool> (static, checks if device has scene data)
  • ShareRoomsAsync(...), LoadSceneFromSharedRooms(...) — co-located multiplayer

Events: SceneLoadedEvent, RoomCreatedEvent, RoomUpdatedEvent, RoomRemovedEvent

MRUKSettings (serialized config): DataSource, RoomPrefabs[], SceneJsons[], LoadSceneOnStartup, EnableHighFidelityScene, SeatWidth, TrackerConfiguration

MRUKRoom

Key Properties: Anchors, WallAnchors, FloorAnchors, CeilingAnchors, GlobalMeshAnchor, IsLocal, RoomMeshData

Key Methods:

  • Raycast(Ray, float, out RaycastHit, out MRUKAnchor) — collisionless raycast against scene geometry
  • RaycastAll(...) — all intersections
  • IsPositionInRoom(Vector3), IsPositionInSceneVolume(Vector3)
  • TryGetClosestSurfacePosition(Vector3, out Vector3, out MRUKAnchor, LabelFilter) → float (distance)
  • GenerateRandomPositionOnSurface(SurfaceType, float, LabelFilter, out Vector3, out Vector3) → bool
  • GenerateRandomPositionInRoom(float, bool) → Vector3?
  • FindLargestSurface(SceneLabels) → MRUKAnchor
  • GetRoomBounds() → Bounds
  • GetKeyWall(out Vector2, float) → MRUKAnchor (widest wall facing room center)

Events: AnchorCreatedEvent, AnchorUpdatedEvent, AnchorRemovedEvent

MRUKAnchor

Key Properties: Label (SceneLabels), PlaneRect (Rect?), VolumeBounds (Bounds?), PlaneBoundary2D (List\<Vector2>), Room (MRUKRoom), ParentAnchor, ChildAnchors, GlobalMesh (Mesh)

Key Methods:

  • Raycast(Ray, float, out RaycastHit, ComponentType) — collisionless raycast
  • HasAnyLabel(SceneLabels) → bool
  • GetAnchorCenter() → Vector3
  • GetClosestSurfacePosition(Vector3, out Vector3, out Vector3, ComponentType) → float
  • IsPositionInVolume(Vector3), IsPositionInBoundary(Vector2)

MRUKTrackable (extends MRUKAnchor)

Runtime-tracked objects (keyboards, QR codes). Managed by MRUK via SceneSettings.TrackerConfiguration.

Key Properties: TrackableType (OVRAnchor.TrackableType), IsTracked, MarkerPayloadString, MarkerPayloadBytes

Events on SceneSettings: TrackableAdded, TrackableRemoved

Feature Components

AnchorPrefabSpawner (Scripts/AnchorPrefabSpawner.cs)

Spawns prefabs on scene anchors based on labels. Configure PrefabsToSpawn (List\<AnchorPrefabGroup>) mapping labels to prefab lists with scaling/alignment modes.

AnchorPrefabGroup: Labels, Prefabs, PrefabSelection (Random/ClosestSize/Custom), Scaling (Stretch/UniformScaling/UniformXZScale/NoScaling/Custom), Alignment (Automatic/Bottom/Center/NoAlignment/Custom), MatchAspectRatio, CalculateFacingDirection

Methods: SpawnPrefabs(), SpawnPrefabs(MRUKRoom), ClearPrefabs()

FindSpawnPositions (Scripts/FindSpawnPositions.cs)

Generates random valid positions for spawning objects. Supports floating, surface-mounted, and hanging positions with physics overlap checking.

SpawnLocation enum: Floating, AnySurface, VerticalSurfaces, OnTopOfSurfaces, HangingDown

Key props: SpawnObject, SpawnAmount, MaxIterations, Labels, CheckOverlaps, SurfaceClearanceDistance

GridSliceResizer (Scripts/GridSliceResizer.cs)

27-slice 3D mesh resizer (3D analogue of 9-slice). Preserves mesh borders/corners while stretching the interior to match anchor dimensions. Attach to prefabs used with AnchorPrefabSpawner.

EffectMesh (Scripts/EffectMesh.cs)

Generates visual meshes from scene anchors. Supports materials, colliders, hole cutting (for doors/windows), shadow casting, and visibility toggling.

Key props: MeshMaterial, Colliders, CutHoles (SceneLabels to cut holes for), CastShadow, HideMesh

Methods: CreateMesh(), DestroyMesh(), ToggleEffectMeshVisibility(bool), ToggleEffectMeshColliders(bool)

Passthrough Relighting (PTRL)

Casts virtual lights' shadows and highlights onto real-world surfaces by rendering an EffectMesh with the Meta/MRUK/Scene/HighlightsAndShadows shader (TransparentSceneAnchor.mat). Silent-failure heavy — the most common gotcha is the URP Renderer asset's Transparent Receive Shadows flag must be ON, otherwise shadows never appear on the floor.

For setup, URP/EffectMesh/passthrough requirements, common failure modes, and editor verification, see references/passthrough-relighting.md.

DestructibleGlobalMeshSpawner (Scripts/DestructibleGlobalMeshSpawner.cs)

Segments the global mesh into breakable fragments using Voronoi-based segmentation.

Key props: GlobalMeshMaterial, PointsPerUnitX/Y/Z (density), ReservedTop/Bottom (unbreakable zones)

SpaceMapGPU (Scripts/SpaceMapGPU.cs)

GPU-computed 2D top-down distance field of the room layout. Outputs to RenderTexture.

Key props: TextureDimension, MapGradient; Methods: GetSpaceMap() → RenderTexture, GetColorAtPosition(Vector3) → Color

Sets shader global _SpaceMapProjectionViewMatrix for UV calculation.

RoomGuardian (Scripts/RoomGuardian.cs)

Fades a boundary material as the user approaches room walls. Sets _GuardianFade float on the material.

Key props: GuardianMaterial, GuardianDistance (meters, default 1.0)

SceneNavigation (Scripts/SceneNavigation.cs)

Generates Unity NavMesh from scene geometry. Requires com.unity.ai.navigation.

Key props: NavigableSurfaces (SceneLabels), Agents (List\<NavMeshAgent>), AgentRadius

Events: OnNavMeshInitialized

For more info see references/scene-navigation.md.

EnvironmentRaycastManager (Scripts/EnvironmentRaycastManager.cs)

Depth API raycasting against the physical environment without requiring pre-scanned scene data. Requires Quest 3+. Namespace: Meta.XR.

Check EnvironmentRaycastManager.IsSupported before use.

Methods: Raycast(Ray, out EnvironmentRaycastHit, float), PlaceBox(Ray, Vector3, Vector3, out EnvironmentRaycastHit), CheckBox(Vector3, Vector3, Quaternion)

PassthroughCameraAccess (Scripts/PassthroughCameraAccess.cs)

Raw passthrough camera image access. Requires horizonos.permission.HEADSET_CAMERA in AndroidManifest. Quest 3+ only. Namespace: Meta.XR.

Key props: CameraPosition (Left/Right), RequestedResolution, MaxFramerate, TargetMaterial

Methods: GetTexture() → Texture, GetColors() → NativeArray\<Color32> (expensive), GetCameraPose() → Pose, ViewportPointToRay(), WorldToViewportPoint()

Struct CameraIntrinsics: FocalLength, PrincipalPoint, SensorResolution, LensOffset

Instant Content Placement (Scripts/BuildingBlocks/InstantContentPlacement/)

Building block scripts using EnvironmentRaycastManager for device-scan-free placement:

  • SpaceLocator (abstract): TryLocateSpace(out Pose), OnSpaceLocateCompleted event, PreferredSurfaceOrientation
  • PointAndLocate: raycast from a Transform, Locate() method
  • GrabAndLocate: grab-and-release placement via Interaction SDK
  • PlaceWithAnchor: creates OVRSpatialAnchor at placed position to prevent drift

Common Patterns

Scene Loaded Callback

void Start()
{
    MRUK.Instance.RegisterSceneLoadedCallback(OnSceneLoaded);
}

void OnSceneLoaded()
{
    var room = MRUK.Instance.GetCurrentRoom();
    // Scene is ready — query anchors, spawn objects, etc.
}

RegisterSceneLoadedCallback fires immediately if the scene is already loaded — safe to call at any time.

Iterating Anchors with LabelFilter

var room = MRUK.Instance.GetCurrentRoom();
foreach (var anchor in room.Anchors)
{
    if (anchor.HasAnyLabel(MRUKAnchor.SceneLabels.TABLE | MRUKAnchor.SceneLabels.STORAGE))
    {
        Debug.Log($"{anchor.Label} at {anchor.GetAnchorCenter()}");
    }
}

Raycasting Against Room Geometry

var room = MRUK.Instance.GetCurrentRoom();
var ray = new Ray(origin, direction);
if (room.Raycast(ray, Mathf.Infinity, out var hit, out var anchor))
{
    Debug.Log($"Hit {anchor.Label} at {hit.point}, normal {hit.normal}");
}

Editor Testing with Prefab Fallback

Set MRUK.SceneSettings.DataSource to DeviceWithPrefabFallback and assign room prefabs in SceneSettings.RoomPrefabs. On device, real scene data is used. In editor (no device), prefab rooms load automatically. The package includes ~50 sample room prefabs under Core/Rooms/Prefabs/ (Bedroom, LivingRoom, Office, LargeScale).

Project Setup

  1. Install com.meta.xr.mrutilitykit package
  2. In OVRManager > Quest Features, set Scene Support to "Required"
  3. In OVRManager > Quest Features, enable Anchor Support
  4. Ensure OVRCameraRig is in the scene
  5. Add an MRUK GameObject with the MRUK component to the scene
  6. Configure SceneSettings.DataSource (use DeviceWithPrefabFallback for development)
  7. For PassthroughCameraAccess: add horizonos.permission.HEADSET_CAMERA to AndroidManifest and regenerate via OVRManifestPreprocessor.GenerateOrUpdateAndroidManifest(true) — silentMode: true is required, or the generator opens a modal dialog that blocks the request. See hz-unity-meta-core-sdk for the full manifest workflow.

Running MRUK code — drive a live Editor with unity-cli

MRUK setup is Editor-only C#. Run it against an open Editor rather than hand-editing scene or settings files:

unity status --format json          # look for state "ready"
unity command run_script --file AgentScripts/SetupMRUK.cs --entry SetupMRUK.Run --format json

Keep the .cs outside Assets/ (path relative to the project root) so writing it triggers no import or domain reload, and add --dry_run true to compile-check before mutating anything.

run_script references every loaded assembly, so the Meta.XR.MRUtilityKit namespace is directly referenceable — no reflection:

// AgentScripts/SetupMRUK.cs
using Meta.XR.MRUtilityKit;

public static class SetupMRUK
{
    public static string Run()
    {
        var room = MRUK.Instance.GetCurrentRoom();
        return room == null ? "no current room" : $"room: {room.name}";
    }
}
  • using System.Reflection; and BindingFlags overloads both work here, so reflection is only for genuinely non-public members.
  • Anything async completes after the script returns — verify in a separate follow-up run_script, never Task.Wait() on the main thread.
  • Finish scene changes with EditorSceneManager.MarkSceneDirty + SaveScene, or unity command save_scene, then read the value back.

MRUK is a runtime system, so most of it only produces data in Play mode. Drive that from the CLI:

unity command clear_console --format json
unity command editor_play --format json           # blocks until play mode is live
unity command get_console_logs --severity error --format json
unity command editor_stop --format json

Give the scene time before stopping. editor_play returns once play mode is live, not once MRUK has finished — LoadSceneFromDevice / LoadSceneFromPrefab return a Task, and EffectMesh, SceneNavigation and friends only run off SceneLoadedEvent. Stopping straight away truncates all of it. Poll get_console_logs (or a run_script reading MRUK.Instance.IsInitialized) until the scene has loaded, and only then read errors and stop.

Connecting, --project-path, and Safe Mode recovery are in the unity-cli skill. The reflection-based MCP version is in references/unity-mcp-fallback.md.

Using metavr Tools for Latest Docs

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 MRUK, MRUKRoom, MRUKAnchor, and other classes. The same backend is reachable from the CLI: metavr docs search "<topic>" and metavr docs api-search "<Class.method>".

Documentation Links

版本历史

  1. v1.8.0 GitHub ↗
    原版更新说明

    **Full Changelog**: https://github.com/meta-quest/agentic-tools/compare/v1.2.3...v1.8.0

  2. v1.2.3 GitHub ↗
    原版更新说明

    **Full Changelog**: https://github.com/meta-quest/agentic-tools/compare/v1.2.1...v1.2.3

  3. v1.2.1 GitHub ↗
    原版更新说明

    **Full Changelog**: https://github.com/meta-quest/agentic-tools/commits/v1.2.1

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 提供 Meta XR Mixed Reality Utility Kit (MRUK) 的完整开发指南,涵盖 Unity XR 开发中的高频刚需场景
  • 面向专业开发者,具有极高实用价值和广泛适用性
触发精准95/100

亮点

  • description 明确列出了所有适用场景,覆盖全面,边界清晰
  • 变体表达充分,包括多种数据源加载方式和组件类型
结构规范85/100

待提升项

  • 文档过长 原报告严重程度:轻微

    SKILL.md 文件约 600 行,略超过 500 行的推荐长度限制

    改进建议:考虑将部分内容拆分为独立的参考文档或附录,保持主文档简洁

亮点

  • 文档结构完整,包含快速参考表、架构说明、核心类详解、功能组件说明、常见模式、项目设置步骤等
  • 有清晰的 Phase/步骤划分和端到端示例,frontmatter 完整
执行可靠90/100

亮点

  • 工具来源明确(com.meta.xr.mrutilitykit),参数说明详尽
  • 覆盖了主要异常情况,包括 Editor 测试回退机制和 Passthrough Relighting 的 URP 配置要求
  • 提供了 CLI 脚本执行的最佳实践,避免常见陷阱
证据可验 (前四项均值)91/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • developers.meta.com
  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。