hz-unity-tmp-resources

Import and configure TextMesh Pro base resources for Unity projects targeting Meta Quest and Horizon OS. Use this resource for setting up TMP UI, repairing missing TMP materials or fonts, or resolving TMP text appearing pink/magenta.

Last repository push
GitHub Stars
269
Forks
25
Issues / PRs
8

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "hz-unity-tmp-resources" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-824a78e8a63a47ed88dc73172a0be7ec97d41774f3443ab7821b330fb69cd353. Verify the upstream source and version against https://github.com/meta-quest/agentic-tools before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Import and configure TextMesh Pro base resources for Unity projects targeting Meta Quest and Horizon OS. Use this resource for setting up TMP UI, repairing missing TMP materials or fonts, or resolving TMP text appearing pink/magenta.

0 Downloads

Introduction source: third_party · meta-quest · 0.0.1 Reference

SkillPi interpretation

Tasks
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.
Audience
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
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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, so TMP_Settings is not a loaded type) returns success with count: 0 — which is exactly the "not imported" signal here.
  • A nonexistent --search_in folder also returns success with count: 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:

  1. 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."
  2. Wait for the user to confirm before proceeding.
  3. 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 true blocks 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.

Version history

  1. v1.8.0 GitHub ↗
    Original release notes

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

  2. v1.2.3 GitHub ↗
    Original release notes

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

  3. v1.2.1 GitHub ↗
    Original release notes

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

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 解决Unity项目中TMP资源导入和配置的常见问题
  • 针对Meta Quest和Horizon OS项目提供专门支持
  • 处理粉色/洋红色文本等实际开发痛点
Trigger Precision92/100

Highlights

  • 触发条件覆盖全面:粉色文本、控制台错误、首次创建TMP元素等
  • 边界清晰,准确识别需要导入资源的场景
  • 包含文件夹不存在的检测条件
Structure and Standards95/100

Areas to improve

  • 文档结构优化 Reported severity: Minor

    Troubleshooting部分可以进一步细分章节

    Recommendation: 建议将Troubleshooting分为'导入后问题'和'菜单问题'两个子章节

Highlights

  • 步骤划分清晰:检查→导入→验证→故障排除
  • 包含完整的端到端示例和具体命令
  • frontmatter信息完整,包含许可证和描述
Execution Reliability85/100

Highlights

  • 工具来源明确:使用unity-cli命令
  • 参数使用正确,包含必要的格式和确认参数
  • 覆盖了主要异常情况:菜单灰显、包未安装等
  • 提供了C#脚本解决方案处理无法通过命令解决的问题
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

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

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.