An in-game explorer and a suite of debugging tools for IL2CPP and Mono Unity games, to aid with modding development.
Supports most Unity games from versions 5.2 to 2020+.
| Mod Loader | IL2CPP | Mono |
|---|---|---|
| BepInEx 6.X | ✅ link | ✅ link |
| BepInEx 5.X | ✖️ n/a | ✅ link |
| MelonLoader 0.3.1 | ✅ link | ✅ link |
| MelonLoader 0.3.0 | ✅ link | ✅ link |
| Standalone | ✅ link | ✅ link |
- Any
MissingMethodExceptionorNotSupportedException: please report the issue and provide a copy of your mod loader log and/or Unity log. - In IL2CPP, some IEnumerable and IDictionary types may fail enumeration. Waiting for the Unhollower rewrite to address this any further.
- The C# Console's completions have some minor issues such as not suggestion global classes which have no namespace, and erronously suggesting classes from using directives when they shouldn't be suggested. These are issues with mcs itself which I am looking into.
- Install BepInEx for your game. IL2CPP currently requires a Bleeding Edge release.
- Download the UnityExplorer release for BepInEx IL2CPP or Mono above.
- Take the
UnityExplorer.BIE.___.dllfile and put it in[GameFolder]\BepInEx\plugins\ - In IL2CPP, you will need to download the Unity libs for the game's Unity version and put them in the
BepInEx\unity-libs\folder.
- Install MelonLoader 0.3.1+ for your game (or use
MelonLoader_Legacyfor0.3.0). This version can currently be obtained from here. - Download the UnityExplorer release for MelonLoader IL2CPP or Mono above.
- Take the
UnityExplorer.ML.___.dllfile and put it in the[GameFolder]\Mods\folder.
The standalone release can be used with any injector or loader of your choice, but it requires you to load the dependencies manually: HarmonyX, and the IL2CPP version also requires that you set up an Il2CppAssemblyUnhollower runtime.
- Load the required libs - HarmonyX, and Il2CppAssemblyUnhollower if IL2CPP
- Load the UnityExplorer DLL
- Create an instance of Unity Explorer with
UnityExplorer.ExplorerStandalone.CreateInstance(); - Optionally subscribe to the
ExplorerStandalone.OnLogevent to handle logging if you wish
- Use the Scene Explorer tab to traverse the active scenes, as well as the DontDestroyOnLoad scene and the HideAndDontSave "scene" (assets and hidden objects).
- Use the Object Search tab to search for Unity objects (including GameObjects, Components, etc), C# Singletons or Static Classes.
The inspector is used to see detailed information on GameObjects (GameObject Inspector), C# objects (Reflection Inspector) and C# classes (Static Inspector).
- In the GameObject Inspector, you can edit any of the input fields in the inspector (excluding readonly fields) and press Enter to apply your changes. You can also do this to the GameObject path as a way to change the GameObject's parent. Press the Escape key to cancel your edits.
- In the Reflection Inspectors, automatic updating is not enabled by default, and you must press Apply for any changes you make to take effect.
The C# Console uses the Mono.CSharp.Evaluator to define temporary classes or run immediate REPL code.
See the "Help" dropdown in the C# console menu for more detailed information.
The "Mouse Inspect" dropdown on the main UnityExplorer navbar allows you to inspect objects under the mouse.
- World: uses Physics.Raycast to look for Colliders
- UI: uses GraphicRaycasters to find UI objects
You can change the settings via the "Options" page of the main menu, or directly from the config file.
Depending on the release you are using, the config file will be found at:
- BepInEx:
BepInEx\config\com.sinai.unityexplorer.cfg - MelonLoader:
UserData\MelonPreferences.cfg - Standalone
{DLL_location}\UnityExplorer\config.ini
- Clone the repository and run
git submodule update --init --recursiveto get the submodules. - Open the
src\UnityExplorer.slnproject in Visual Studio. - Build
Harmony,mcs, and if IL2CPPUnhollowerBaseLibas well. - Build the UnityExplorer release(s) you want to use, either by selecting the config as the Active Config, or batch-building. If ILRepack encounters an error on your first build, try changing the active config to a different one, then back again.
- ManlyMarco for Runtime Unity Editor [license], the ScriptEvaluator from RUE's REPL console was used as the base for UnityExplorer's C# console.
- denikson (aka Horse) for mcs-unity [no license], used as the
Mono.CSharpreference for the C# Console. - HerpDerpenstine for MelonCoroutines [license], they were included for standalone IL2CPP coroutine support.
UnityExplorer is in no way associated with Unity Technologies. "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere.