Very simple Unity il2cpp freecam melonloader mod with XInput controller and keyboard support that should work on most il2cpp Unity games.
- Download and install MelonLoader
- Download the Unity freecam from the releases page
- Place the
Keyboard/Mods/unity_freecam.dll
in your MelonLoader installation directory'sMods
folder (Alternatively useController
folder for controllers) - For controller support, place
Controller/UserLib
s in your MelonLoader installation directoryUserLibs
folder, and placeXInputInterface.dll
in your MelonLoader installation directory
-
Copy "MelonLoader.dll" and "Il2CppInterop.Runtime.dll" from your
MelonLoader\net6\
path into the projectslibs\
folder -
Copy the library content from
MelonLoader\Il2CppAssemblies\
into the projectslibs\
directory -
Add references to all of them (Visual Studio should automatically include everything)
F5
to toggle freecam
Keyboard / Mouse: W, A, S, D, Ctrl, Space
Controller: Joysticks
- As far as MelonLoader supports it
- XInput functionality only works on Windows
- MelonLoader v0.6.2 OpenBeta ( x64, Il2cpp, net6, Unity Version 2019.4.11f1 )
- Literally made this just for Digimon World: Next Order
- Should lock input yourself if needed, Will Be Done One Day™
- If using a controller on Steam, disable SteamInput as this disables XInput and the XInput wrapper will not work
- Only works with an XInput controller. switching out the library for another (Such as SDL2 for DirectInput) should be easy.
If you encounter any issues or have suggestions for improvement, please open an issue on GitHub.
- The MelonLoader community
- Speps for their XInput C# wrapper
- Sinai for their UnityExplorer mod and general inspiration for this
The MIT License, available in the LICENSE file