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★ 1 342 звезды на GitHubОб этом скилле
Optimize TextMeshPro
Important
- Use the unity cli (
unity command --format json) and theunity-cliandunity-pipelineskills 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 useusingdirectives or unqualified types in the snippet. The compiler readsusing UnityEngineand a bareAssetDatabase,Volume, orObjectcauses errors (CS0246 / CS0103 / CS0104).returnwhat you want to read; it arrives atdata.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:
- 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.
- 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.6or@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.
TextMeshProcomponent: the 3D text component for text in the scene, without a Canvas.TextMeshProUGUIcomponent: 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
- Read the Unity version and the
com.unity.uguiorcom.unity.textmeshproversion, as described above. - Read the doc pages that cover the area you'll work on, as described above.
- Identify the symptom with the Triage table, asking the user if they haven't described one.
- 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.
- 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
Установить optimize-text-mesh-pro в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic