Fixing Audio Mixer Groups with REPOLib
NOTE
This page assumes you have a Harmony project setup for R.E.P.O. modding.
If not, first follow the guide in Harmony Project Setup.
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);
});
}TIP
You rarely need to do this manually, as registering features will automatically fix their prefabs' mixer groups.