Fixing Audio Mixer Groups with REPOLib
NOTE
This page assumes you have a HarmonyX project setup for R.E.P.O. modding.
If not, first follow the guide in HarmonyX Project Setup.
TIP
You rarely need to do this manually, as registering features will automatically fix their prefabs' mixer groups.
REPOLib matches audio mixer groups from bundled assets with the real runtime equivalents.
Fixing audio mixer groups on a prefab and its children:
C#
private void Awake()
{
REPOLib.BundleLoader.LoadBundle("your_assetbundle_file_path", assetBundle =>
{
var prefab = assetBundle.LoadAsset<GameObject>("your_prefab");
REPOLib.Modules.Utilities.FixAudioMixerGroups(prefab);
});
}