UnityExplorer/README.md

72 lines
3.3 KiB
Markdown
Raw Normal View History

2020-08-22 01:02:04 +10:00
# CppExplorer [![Version](https://img.shields.io/badge/MelonLoader-0.2.6-green.svg)]()
2020-08-20 18:53:56 +10:00
<p align="center">
2020-08-23 03:00:19 +10:00
<img align="center" src="https://sinai-dev.github.io/images/thumbs/02.png">
2020-08-20 18:53:56 +10:00
</p>
2020-08-22 01:42:29 +10:00
<p align="center">
An in-game explorer and a suite of debugging tools for <a href="https://docs.unity3d.com/Manual/IL2CPP.html">IL2CPP</a> Unity games, using <a href="https://github.com/HerpDerpinstine/MelonLoader">MelonLoader</a>.<br><br>
2020-08-10 19:28:10 +10:00
2020-08-22 01:42:29 +10:00
<a href="../../releases/latest">
<img src="https://img.shields.io/github/release/sinai-dev/CppExplorer.svg" />
</a>
<img src="https://img.shields.io/github/downloads/sinai-dev/CppExplorer/total.svg" />
</p>
2020-08-22 01:02:04 +10:00
### Note
2020-08-13 23:42:31 +10:00
Most games running on Unity 2017 to 2019 should be supported. If you find that the GUI does not display properly and you get errors in the MelonLoader console about it, then this is likely due to a bug with Il2CppAssemblyUnhollower's unstripping. This bug is known by the developer of the tool and they will fix it as soon as they are able to.
2020-08-07 22:24:42 +10:00
2020-08-07 23:51:37 +10:00
## Features
2020-08-08 03:50:51 +10:00
* Scene hierarchy explorer
2020-08-08 03:58:12 +10:00
* Search loaded assets with filters
2020-08-08 03:48:35 +10:00
* Traverse and manipulate GameObjects
* Generic Reflection inspector
2020-08-13 23:42:31 +10:00
* C# REPL Console
2020-08-08 03:48:35 +10:00
* Inspect-under-mouse
2020-08-07 23:51:37 +10:00
2020-08-07 22:24:42 +10:00
## How to install
2020-08-08 03:48:35 +10:00
Requires [MelonLoader](https://github.com/HerpDerpinstine/MelonLoader) to be installed for your game.
2020-08-07 22:24:42 +10:00
2020-08-08 00:02:01 +10:00
1. Download <b>CppExplorer.zip</b> from [Releases](https://github.com/sinaioutlander/CppExplorer/releases).
2020-08-08 05:16:55 +10:00
2. Unzip the file into the `Mods` folder in your game's installation directory, created by MelonLoader.
3. Make sure it's not in a sub-folder, `CppExplorer.dll` and `mcs.dll` should be directly in the `Mods\` folder.
2020-08-07 22:24:42 +10:00
## How to use
* Press F7 to show or hide the menu.
* Simply browse through the scene, search for objects, etc, it's pretty self-explanatory.
2020-08-14 17:51:09 +10:00
### Help! I can't use the mouse!
It is fairly common for games to override mouse control with their own mouse behaviour. Unfortunately, it's not feasible for CppExplorer to handle this due to how differently every game will go about it.
2020-08-15 16:07:20 +10:00
In order to fix this problem, you can:
2020-08-15 16:08:56 +10:00
* Use [VRCExplorerMouseControl](https://github.com/sinaioutlander/VRCExplorerMouseControl) (for VRChat)
* Use [HPExplorerMouseControl](https://github.com/sinaioutlander/Hellpoint-Mods/tree/master/HPExplorerMouseControl/HPExplorerMouseControl) (for Hellpoint)
2020-08-15 16:07:20 +10:00
* In general, pressing Escape (to open a menu) will usually give you temporary control over the mouse.
2020-08-15 16:08:56 +10:00
* Create your own mini-plugin using one of the two plugins above as an example. Usually only 1 or 2 simple Harmony patches are needed to fix the problem.
2020-08-14 17:51:09 +10:00
2020-08-07 22:45:32 +10:00
## Images
2020-08-24 01:50:03 +10:00
<b>Scene Explorer, GameObject Inspector, and Reflection Inspectors:</b>
2020-08-07 22:45:32 +10:00
2020-08-24 01:50:03 +10:00
[![](https://i.imgur.com/n8bkxVW.png)](https://i.imgur.com/n8bkxVW.png)
2020-08-07 22:45:32 +10:00
2020-08-24 01:50:03 +10:00
<b>Object Search:</b>
2020-08-07 22:45:32 +10:00
2020-08-24 01:53:59 +10:00
[![](https://i.imgur.com/lK2RthM.png)](https://i.imgur.com/lK2RthM.png)
2020-08-07 22:45:32 +10:00
2020-08-24 01:50:03 +10:00
<b>C# REPL console:</b>
2020-08-07 22:45:32 +10:00
2020-08-24 01:50:03 +10:00
[![](https://i.imgur.com/gYTor7C.png)](https://i.imgur.com/gYTor7C.png)
2020-08-08 00:02:32 +10:00
## Credits
Written by Sinai.
2020-08-09 21:50:55 +10:00
Thanks to:
* [ManlyMarco](https://github.com/ManlyMarco) for their [Runtime Unity Editor](https://github.com/ManlyMarco/RuntimeUnityEditor), which I used for the REPL Console and the "Find instances" snippet, and the UI style.
* [denikson](https://github.com/denikson) for [mcs-unity](https://github.com/denikson/mcs-unity). I commented out the `SkipVisibilityExt` constructor in `mcs.dll` since it was causing an exception with the Hook it attempted.