hz-unity-platform-sdk
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "hz-unity-platform-sdk":https://skillpi.com/zh/skills/deepskill-c00f6ec7ebaeb0f9803ff215be1dda5e4b1debf980db159790f7254a0e1c045d。安装前核对上游来源和版本:https://github.com/meta-quest/agentic-tools。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
指导将 Horizon Platform SDK 集成到 Meta Quest 和 Horizon OS 的 Unity/C# 应用中。内容覆盖成就、应用内购买 (IAP)、用户、排行榜、挑战、在线状态、通知、滥用举报、权限、资源文件、应用生命周期、用户同意、设备完整性、语言包、用户年龄分类与评分和评论功能,包含 18 个公开平台 SDK 软件包的安装配置、初始化、API 使用、数据类型、错误处理及最佳实践。
介绍来源: third_party · meta-quest · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: hz-unity-platform-sdk
license: Apache-2.0
description: Guides integration of the Horizon Platform SDK for Meta VR and Horizon OS Unity/C# apps — achievements, IAP, users, leaderboards, challenges, presence, notifications, abuse reporting, entitlements, asset files, application lifecycle, consent, device integrity, language packs, user age categories, and rate and review. Covers setup, initialization, API usage, data types, error handling, and best practices for all 18 public platform SDK packages.Horizon Platform SDK - Unity/C# Integration Guide
When to Use
Use this skill when a developer:
- Wants to integrate any Horizon Platform SDK feature in a Unity Meta VR application
- Asks about setup, initialization, or dependencies for the Unity SDK package (
com.meta.xr.sdk.platform) - Needs help with a specific public platform API (achievements, IAP, users, etc.) in C#
- Is troubleshooting errors or status codes from any SDK package in Unity
- Asks about
Core.AsyncInitialize,Oculus.Platform, or platform message handling
For Android/Kotlin apps, use the hz-platform-sdk skill instead.
Quick Start
- Setup guide: https://developers.meta.com/horizon/documentation/unity/ps-platform-intro/
- UPM Package:
com.meta.xr.sdk.platformvia Unity Package Manager - Namespace:
Oculus.Platform(backward compatible with legacy LibOVRPlatform SDK)
Available APIs
| Feature | Reference | Description |
|---|---|---|
| Abuse Report | abuse-report |
Listen for system Report button events, respond with in-app flow |
| Achievements | achievements |
Unlock, track progress, and query simple/count/bitfield achievements |
| Application | application |
Get app version, launch other apps, manage self-update downloads |
| Application Lifecycle | application-lifecycle |
Detect launch type, handle deeplinks and invites, log results |
| Asset File | asset-file |
List, download, cancel, and delete downloadable asset files (DLC) |
| Challenges | challenges |
Time-bound score competitions on top of leaderboards |
| Consent | consent |
Check and launch user consent flows with version bumps |
| Device Application Integrity | device-application-integrity |
Verify device and app integrity via JWT attestation |
| Entitlements | entitlements |
Mandatory anti-piracy check required for all Store apps |
| Group Presence | group-presence |
Set/clear presence, manage sessions, send invites, handle join intents |
| In-App Purchases (IAP) | iap |
Retrieve products, purchase history, checkout flow, consume purchases |
| Language Pack | language-pack |
Get/set language packs with auto-download |
| Leaderboards | leaderboards |
Retrieve leaderboard info, fetch/write entries with filtering |
| Notifications | notifications |
Send device notifications with toast, feed persistence, and action buttons |
| Rate and Review | rate-and-review |
Check eligibility and launch the system rating/review UI |
| Rich Presence | rich-presence |
Set/clear rich presence (deprecated; prefer group-presence) |
| User Age Category | user-age-category |
Query user age group and report age categories for compliance |
| Users | users |
Retrieve user profiles, friends, access tokens, identity verification |
How to Use
- First, read
references/common-setup.mdfor shared setup instructions, initialization code, Editor testing, and common patterns that apply to all APIs. - Then, read the specific reference file for the API you need (e.g.,
references/iap.mdfor in-app purchases). - For exact signatures, query the API index instead of guessing:
metavr docs api-search "<feature> <operation>", thenmetavr docs api-details <entry>for the full entry.
Each reference file contains only the package-specific content: API operations, data types, examples, and package-specific notes. The common setup, initialization patterns, and coding conventions are centralized in common-setup.md to avoid duplication.
版本历史
-
v1.8.0
GitHub ↗
原版更新说明
**Full Changelog**: https://github.com/meta-quest/agentic-tools/compare/v1.2.3...v1.8.0
-
v1.2.3
GitHub ↗
原版更新说明
**Full Changelog**: https://github.com/meta-quest/agentic-tools/compare/v1.2.1...v1.2.3
-
v1.2.1
GitHub ↗
原版更新说明
**Full Changelog**: https://github.com/meta-quest/agentic-tools/commits/v1.2.1
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 覆盖 Meta Quest/Horizon OS 上 Unity 应用集成的 18 个核心平台功能,满足开发者高频刚需
- 内容结构化良好,区分通用设置与专项 API 指导,显著降低集成门槛
亮点
- 触发词精准,明确限定于 Unity/C# 场景,并主动排除 Android/Kotlin 以避免误触
- When to Use 列举典型用例,边界清晰,便于用户判断是否匹配需求
待提升项
-
description写错位置 原报告严重程度:轻微
顶层 frontmatter 中已包含 description,skill_body 开头又重复相同内容
改进建议:移除 skill_body 开头的重复 description,保持信息唯一性
亮点
- Phase 划分清晰(Setup → Specific API → Docs Query),有明确执行路径
- API 功能以表格形式汇总,便于快速定位所需能力
待提升项
-
缺少关键操作的确认机制示例 原报告严重程度:轻微
涉及支付(IAP)、用户同意等敏感操作时,未在主体中展示二次确认或异常回滚逻辑
改进建议:在 Quick Start 或 How to Use 中补充对不可逆操作的确认提示说明
亮点
- 工具来源明确(官方 UPM 包),命名空间与初始化方式准确
- 引导用户查阅官方文档获取精确 API 签名,避免猜测导致的错误
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- developers.meta.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。