optimize-text-mesh-pro
Installation
SKILL.md
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.
- Don't use
usingdirectives or unqualified types in thesnippetforeval. 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.