Factor-LegacyBundleFontFix icon

LegacyBundleFontFix

Fixes bugged/broken TextMeshPro text in custom levels and mods whose Unity 2022 AssetBundles load directly via AssetBundle.LoadFromFile (such as FNAFLevel) by routing them through REPOLib's legacy font fixer.

By Factor
Last updated 41 minutes ago
Total downloads 6
Total rating 0 
Categories Mods Misc Client-side AI Generated
Dependency string Factor-LegacyBundleFontFix-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
Zehs-REPOLib-4.5.1 icon
Zehs-REPOLib

Library for adding content to R.E.P.O.

Preferred version: 4.5.1

README

LegacyBundleFontFix

Fixes bugged/broken TextMeshPro text in custom levels and mods (such as FNAFLevel) whose Unity 2022 AssetBundles call AssetBundle.LoadFromFile directly instead of going through REPOLib's bundle loader.

What it does

  • Intercepts direct AssetBundle.LoadFromFile_Internal calls for Unity < 6000 bundles and passes them through REPOLib's FontAssetMaterialPatch.BeginLegacyBundle / EndLegacyBundle.
  • Performs a safe startup/scene-load sweep to register any already-loaded legacy TMP_FontAsset / TMP_SpriteAsset instances with REPOLib and refresh active TMP_Text components.