Unity Issue Tracker - TMP_FontAsset fails to change when the Fallback Font Asset is changed
Closed
UUM-113958
TMP_FontAsset fails to change when the Fallback Font Asset is changed
Unity: Text (TextMeshPro)
Won't Fix
6.3.X
6.2.X
6.0.X
Currently, changing a FontAsset’s fallback order at runtime has no effect, as the cache still references the old fallbacks.
Users have to manually reset a font’s fallback cache using the following API:
TMP_ResourceManager.ClearFontAssetGlyphCache
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode
4. Press the Button with the text "Switch to Japanese"
5. Observe the character
Expected result: Character changes to Japanese and has the vertical line on top
Actual result: Character stays the same
Reproducible with: 6000.0.55f1, 6000.1.14f1, 6000.2.0f1, 6000.3.0a4
Could not test with: TMP 3.0.6 (2023.1.0a1) (NullReferenceException: Object reference not set to an instance of an object)
Reproducible on:
Play Mode
Windows Standalone Player
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Note:
Reproducible even when forcing a mesh update on text mesh
Prioritise and Follow this issue
Have a workaround or additional info about this issue?