Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

optimize-text-mesh-pro

БесплатноБез исполняемых скриптовНе проверен

Optimizes TextMeshPro rendering, memory, and font setup, including font asset stacks, fallback atlases, SDF quality, and worldspace text. Use when the user…

Unity-Technologiesот Unity-Technologies★ 1 342 звезды на GitHub

Об этом скилле

Optimize TextMeshPro

Important

  • Use the unity cli (unity command --format json) and the unity-cli and unity-pipeline skills for each step.
  • Create a restore point you can roll back to if your changes fail.
  • Do only what's asked. Don't change unrelated assets or files.
  • Run C# with unity command script eval --code '<snippet>'. Don't use using directives or unqualified types in the snippet. The compiler reads using UnityEngine and a bare AssetDatabase, Volume, or Object causes errors (CS0246 / CS0103 / CS0104). return what you want to read; it arrives at data.result.result.
  • Never leave verification code in the user's script; never build logging or detection they didn't ask for. See Final step.
  • Avoid long explanations.

First, read the Unity version from ProjectSettings/ProjectVersion.txt and the com.unity.ugui or com.unity.textmeshpro version from Packages/packages-lock.json, because the doc URLs and some advice depend on them. For example, before you recommend Dynamic OS, check that TMPro.AtlasPopulationMode.DynamicOS exists in the installed package's API reference, because older com.unity.textmeshpro versions don't have it.

Before you go forward with a workflow or diagnosis:

  1. Open and read the documentation page(s) that cover the specific subject related to what you intend to do or fix and check if you've missed anything.
  2. Name the file(s) you read in your response.

This is because your training knowledge about Unity might be out of date, incorrect, or for the wrong Unity version.

Prefer WebFetch over WebSearch — faster and lands on the exact reference. Only fetch what you need. Replace <VERSION> with the following before fetching:

  • Package on docs.unity3d.com: The package version, eg @6.6 or @2.0. Check the package version if unsure.
  • Engine on docs.unity.com: The Unity version, eg 6000.3

For TextMeshPro, if com.unity.ugui is 2.0 or later, TMP is part of uGUI and its docs are in the com.unity.ugui package; otherwise they are in the com.unity.textmeshpro package. Use the one listed in Packages/packages-lock.json.

Glossary

Some names mean different things in the product, the UI and the API, so use these meanings:

  • TextMeshPro (TMP): the text system as a whole.
  • TextMeshPro component: the 3D text component for text in the scene, without a Canvas.
  • TextMeshProUGUI component: the UI text component that renders through a Canvas.
  • Dynamic and Dynamic OS: two different Atlas Population Mode values. Dynamic uses the project's font file, and Dynamic OS uses a font on the device. Don't treat one as the other.

Workflow

  1. Read the Unity version and the com.unity.ugui or com.unity.textmeshpro version, as described above.
  2. Read the doc pages that cover the area you'll work on, as described above.
  3. Identify the symptom with the Triage table, asking the user if they haven't described one.
  4. Follow the matching section. Give advice by default, and change settings only when the user asks you to, because many of these settings change memory use or build size for the whole project. Before you change anything, create a restore point.
  5. Run the Final step, then give the Final report.

Triage — identify the symptom first

Before providing tips, identify which category the user's issue falls into. If the user has not described a specific symptom, ask: "Are you seeing a memory/atlas bloat, visual quality, CPU/performance, build size, or localization/alignment issue with TextMeshPro?"

Symptom Go To
Memory Profiler shows large or multiple TMP atlases Font Stack & Dynamic Fallbacks, Memory Profiler: Include Font Data
Inconsistent glyph weight, fuzzy edges, visual quality Padding & Sampling Ratios, Font Asset Scale, Atlas Render Mode: SDF16
CPU spikes during text updates or Canvas rebuilds AutoSize, Worldspace vs Canvas Text
Build size too large from shipped font files Dynamic OS Atlas Population
Mixed Latin + CJK alignment looks off Font Normalization
Need multiple font styles (italic, outline, glow) Material Presets

Core Rules

  • Main font = static asset with all glyphs baked in. Add dynamic fallbacks to the font asset's own Fallback list for everything else, not the global list in TMP Settings, unless every font in the project should share them (see FontAssetsFallback.md). Keep dynamic atlas size at 512-1024 to bound peak memory.
  • Dynamic fallback fonts -> enable Clear Dynamic Data On Build. Otherwise editor
Полный SKILL.md на GitHub

Установить optimize-text-mesh-pro в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SECURITY.md

FAQ

Что делает скилл optimize-text-mesh-pro?

Optimizes TextMeshPro rendering, memory, and font setup, including font asset stacks, fallback atlases, SDF quality, and worldspace text. Use when the user asks about TextMeshPro font assets, CJK font fallbacks, or TMP memory, build size, quality or performance, not about translating text.

Как установить скилл optimize-text-mesh-pro?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл optimize-text-mesh-pro запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить optimize-text-mesh-pro с