Skip to main content
skill CX Codex

optimize-text-mesh-pro — Claude Code skill for TextMeshPro tuning

Walks through TextMeshPro problems in Unity: bloated atlases, fuzzy glyphs, CPU spikes on text updates, build size.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Unity-Technologies/skills --skill optimize-text-mesh-pro -a claude-code
Open on GitHub

What optimize-text-mesh-pro does

The skill is a triage guide. It asks which symptom you have — memory or atlas bloat, visual quality, CPU load, build size, or alignment in mixed-language text — then points to the matching section: font stacks and dynamic fallbacks, padding against sampling point size, font asset scale, SDF16 atlas mode, AutoSize, worldspace text, font normalization, material presets.

The rules are concrete. Keep the main font static with its glyphs baked, and add dynamic fallbacks through the Fallback list. Any dynamic fallback needs Clear Dynamic Data On Build turned on, or glyphs baked while you test in the editor end up in the player. Padding divided by sampling point size has to match across the main font and its fallbacks, since a mismatch shows up as uneven stroke weight on one line. Set font asset Scale to 1 — a value like 0.9 throws off point-size math.

Normalizing mixed Latin and CJK text runs through importing TMP Example & Extras, adding TMP_TextInfoDebugTool to the object, and turning on ShowLines to see where baseline drifts. On some project layouts that import loops forever; restarting Unity clears it on the second try. If you ship multilingual builds for iOS and Android, the skill suggests evaluating Atlas Population Mode = Dynamic OS from TMP 3.2.0-pre.3, where the source font stays out of the player and Unity looks for a matching one on the device.

What it helps with

  • find out why several large TMP atlases show up in the Memory Profiler
  • fix fuzzy edges and uneven glyph weight on a single line
  • stop CPU spikes on timers and counters caused by AutoSize
  • shrink build size from shipped font files
  • align Latin and CJK text on the same line

Example prompts for the agent

  • TMP atlases are huge in the Memory Profiler — what should I check first?
  • Latin and Chinese text sit on one line and the baselines drift apart. How do I align them?
  • My on-screen timer causes CPU spikes. Should I turn AutoSize off?

How to install optimize-text-mesh-pro

1Skills CLI (Vercel)

npx skills add Unity-Technologies/skills --skill optimize-text-mesh-pro -a claude-code

2Manually: put the files in place

~/.claude/skills/optimize-text-mesh-pro/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/optimize-text-mesh-pro/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about optimize-text-mesh-pro

How do I install optimize-text-mesh-pro in Claude Code?

Run npx skills add Unity-Technologies/skills --skill optimize-text-mesh-pro -a claude-code. The skill file lands at ~/.claude/skills/optimize-text-mesh-pro/SKILL.md.

What does optimize-text-mesh-pro do?

It sorts TextMeshPro issues in Unity by symptom and gives rules for font stacks with dynamic fallbacks, padding against sampling point size, asset scale, atlas mode, AutoSize and material presets.

How does it help with multilingual builds?

For iOS and Android it suggests evaluating Atlas Population Mode = Dynamic OS from TMP 3.2.0-pre.3: the source font stays out of the build, and Unity searches the device for a font with matching Family and Style.

Similar skills

Everything for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set31

ui-ugui This skill inspects, creates, and revises Unity uGUI interfaces. Use it for Canvas hierarchies, RectTransforms, layout groups, or prefab UI. CX Codex +1 6,400installs build-live-game Brings Unity Gaming Services into a project: player accounts, cloud saves, leaderboards, Cloud Code and Remote Config. Useful when live-ops features get built inside the Unity Editor. CX Codex +1 6,000installs levelplay-unity-integration Walks the agent through a LevelPlay integration in Unity: Ads Mediation package, Android and iOS dependencies, rewarded, interstitial and banner ads. CX Codex +1 5,900installs urp-postprocessing Walks an agent through URP post-processing with the Volume framework: bloom, tonemapping, color adjustments, depth of field, vignette. Useful when an effect never shows up. CX Codex +1 5,800installs implement-in-app-purchases Configures Unity In-App Purchasing v5, handles receipt validation, and guides migrations from native store billing or third-party SDKs. CX Codex +1 5,800installs shader-graph-create-custom-node Generates custom Shader Graph nodes directly from HLSL functions. It handles reflection markup so Unity registers your shader code in the graph creation menu. CX Codex +1 5,600installs optimize-audio This skill audits Unity audio settings and guides changes for memory use, mixer CPU load, and 3D playback issues. It reports findings before making edits. CX Codex +1 5,600installs sprite-editor Rewrites Unity sprite rects, borders, pivots and slicing by generating C# snippets that run inside a live Editor. CX Codex +1 5,600installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor