food-SubMeshFix icon

SubMeshFix

Fixes TextMeshPro fallback-font submesh UI rendering issues.

Last updated 4 days ago
Total downloads 23
Total rating 0 
Categories Client Mods
Dependency string food-SubMeshFix-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack_GTFO-3.2.3 icon
BepInEx-BepInExPack_GTFO

BepInEx pack for GTFO. Preconfigured and includes Unity Base DLLs.

Preferred version: 3.2.3

README

SubMeshFix Icon

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

Details of the issue

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.