
System.ArgumentNullException: Value cannot be null. (Parameter 'meth')
DarwinVS opened this issue · 2 comments
All of the following criteria must be met
- All Requirements must be installed.
- Changed the title so that it doesn't just says "[Bug]: "
- I have searched the GitHub issues for my bug, even in the closed issues.
All of the following are optional to answer
- Tried reinstalling the Game.
- Tried reinstalling MelonLoader.
- Tried restarting PC.
- Was able to see the Start Screen.
Describe the issue.
Hello!
I'm trying to import an asset bundle into an IL2CPP game (built with Unity 2021.3.11f1 targeting Windows).
Well I'm trying via AssetBundle.LoadFromFile, and I have the following error.
public AssetBundle LoadAssetBundle(string name) { AssetBundle bundle = null; string path = Path.Combine(Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName), "Mods\\" + name); if (File.Exists(path)) { bundle = AssetBundle.LoadFromFile(path); if (bundle == null) { MelonLogger.Error($"No se pudo cargar el AssetBundle en {path}"); } else { MelonLogger.Msg("AssetBundle Cargado"); } } else { MelonLogger.Error($"No se encontró el AssetBundle en {path}"); } return bundle; }
Did you attach your log file?
Select an option below
Reference UnityEngine.Il2CppAssetBundleManager.dll
and use Il2CppAssetBundleManager.LoadFromFile
instead.
We include Il2Cpp fixed libraries for using Asset Bundles.