SubMeshFix
Fixes TextMeshPro fallback-font submesh UI rendering issues.
| Date uploaded | 5 days ago |
| Version | 1.0.0 |
| Download link | food-SubMeshFix-1.0.0.zip |
| Downloads | 23 |
| Dependency string | food-SubMeshFix-1.0.0 |
This mod requires the following mods to function
BepInEx-BepInExPack_GTFO
BepInEx pack for GTFO. Preconfigured and includes Unity Base DLLs.
Preferred version: 3.2.3README
SubMeshFix
Fixes TextMeshPro fallback-font submesh UI rendering issues.
For feedback and issues, DM / message @uwufood on the GTFO Modding Discord Server
What it fixes
GTFO's menu font has no CJK glyphs, so TextMeshPro draws them with a fallback font, in a separate "submesh" object with its own renderer. The game only ever sets up a text's own renderer, so that part of a text is not properly handled:
- is not clipped by scroll windows: it spills over the window's edge;
- can end up behind a popup's background: inside the popup it is invisible, and only shows where it sticks out.
This affects any text with fallback-font glyphs in a scrolling list or popup: the game's own menus in CJK (mixed w/ Latin charset especially).
How
Every submesh inside a clipped window is tracked together with its text, and once per frame it is given its text's sorting layer and clipping data.
CHANGELOG
v1.0.0
- Initial release.