hz-unity-tmp-resources
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "hz-unity-tmp-resources":https://skillpi.com/zh/skills/deepskill-824a78e8a63a47ed88dc73172a0be7ec97d41774f3443ab7821b330fb69cd353。安装前核对上游来源和版本:https://github.com/meta-quest/agentic-tools。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
导入并配置适用于 Meta Quest 与 Horizon OS 的 Unity 项目 TextMesh Pro 基础资源。用于设置 TMP UI、修复缺失的 TMP 材质或字体,或解决 TMP 文本显示为粉色/洋红色的问题。
介绍来源: third_party · meta-quest · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: hz-unity-tmp-resources
license: Apache-2.0
description: Imports and configures TextMesh Pro Essential Resources for Unity projects targeting Meta VR and Horizon OS. Use when setting up TMP UI, fixing missing TMP materials or fonts, or resolving pink/magenta TMP text.TextMesh Pro Resources Import
When to use this skill
Use this skill automatically when any of the following are detected:
- TMP text appears pink/magenta in the scene
- Console errors mentioning
LiberationSans SDF,TMP Settings, or missing TMP materials - Creating the first TMP text element in a project
- User asks to set up TextMesh Pro or create UI text
Assets/TextMesh Pro/Resources/folder does not exist
Driving the Editor
Every step below runs through unity-cli against an open Editor — no C# required. Confirm one is
reachable first, and pass --project-path <proj> when more than one may be running:
unity status --format json # look for state "ready"
Connecting, --project-path, and Safe Mode recovery are covered by the unity-cli skill. On a
Unity MCP server instead, see references/unity-mcp-fallback.md.
Step 1: Check if TMP resources are already imported
unity command find_assets --type TMP_Settings --format json
unity command find_assets --name "LiberationSans SDF" --format json
find_assets needs at least one of --type / --name / --label — with none it fails
"At least one of type, name, or label is required." Any one of them is enough on its own;
--search_in only narrows the scope and is optional.
Read data.result.count; 0 for both means the resources are not imported. If they are found,
stop here — no action needed.
Two ways count: 0 is not an error, so always judge on count rather than success:
- An unresolvable
--type(TMP not imported, soTMP_Settingsis not a loaded type) returnssuccesswithcount: 0— which is exactly the "not imported" signal here. - A nonexistent
--search_infolder also returnssuccesswithcount: 0.
Step 2: Import TMP Essential Resources
IMPORTANT: The TMP import opens a modal Unity dialog that requires manual user interaction. It cannot be fully automated.
unity command menu --path "Window/TextMeshPro/Import TMP Essential Resources"
After executing, you MUST:
- Tell the user: "The Import Unity Package dialog has opened in Unity. Please click the Import button, then let me know when it's done."
- Wait for the user to confirm before proceeding.
- Do NOT assume import succeeded without confirmation.
The modal blocks the Editor, so expect this request to time out or return late — that is the dialog waiting on the user, not a failure.
Step 3: Verify import succeeded
After the user confirms, re-run the checks and require both assets to exist:
unity command find_assets --name "LiberationSans SDF" --format json
unity command find_assets --type TMP_Settings --format json
A non-zero count for both is the bar. If either is 0, the import did not complete — do not
proceed to UI work. Editor import is only half the story: after deploying, confirm text actually
renders with metavr capture screenshot (pink/magenta text means the TMP shaders need a reimport —
see Troubleshooting).
Troubleshooting
Pink/magenta text after import
Force a reimport of the TMP shaders. This one needs C# (there is no reimport command), so run it via
run_script with the file outside Assets/:
// AgentScripts/ReimportTmpShaders.cs
using UnityEditor;
public static class ReimportTmpShaders
{
public static string Run()
{
var guids = AssetDatabase.FindAssets("t:Shader TextMeshPro");
foreach (var guid in guids)
AssetDatabase.ImportAsset(AssetDatabase.GUIDToAssetPath(guid), ImportAssetOptions.ForceUpdate);
return $"Reimported {guids.Length} TMP shaders.";
}
}
unity command run_script --file AgentScripts/ReimportTmpShaders.cs --entry ReimportTmpShaders.Run --format json
--file resolves against the project root, and keeping the script outside Assets/ means writing it
triggers no asset import or domain reload.
Menu item grayed out or missing
If Window/TextMeshPro/Import TMP Essential Resources is not available:
-
Resources may already be imported — run Step 1 to check.
-
TMP package may not be installed:
unity command package_add --identifier com.unity.textmeshpro --confirm true --wait true --format json unity command package_list --scope installed --format json # verify--wait trueblocks until the package resolves. A successful add forces a recompile and domain reload, so treat anything after it as a separate command rather than chaining in one script.
Integration with meta-quest-ui skill
This skill handles importing TMP resources. For VR-specific UI configuration (canvas setup, text sizing, viewing distances), use the meta-quest-ui skill after TMP resources are imported.
版本历史
-
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 实验室的评测报告。
亮点
- 解决Unity项目中TMP资源导入和配置的常见问题
- 针对Meta Quest和Horizon OS项目提供专门支持
- 处理粉色/洋红色文本等实际开发痛点
亮点
- 触发条件覆盖全面:粉色文本、控制台错误、首次创建TMP元素等
- 边界清晰,准确识别需要导入资源的场景
- 包含文件夹不存在的检测条件
待提升项
-
文档结构优化 原报告严重程度:轻微
Troubleshooting部分可以进一步细分章节
改进建议:建议将Troubleshooting分为'导入后问题'和'菜单问题'两个子章节
亮点
- 步骤划分清晰:检查→导入→验证→故障排除
- 包含完整的端到端示例和具体命令
- frontmatter信息完整,包含许可证和描述
亮点
- 工具来源明确:使用unity-cli命令
- 参数使用正确,包含必要的格式和确认参数
- 覆盖了主要异常情况:菜单灰显、包未安装等
- 提供了C#脚本解决方案处理无法通过命令解决的问题
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。