-
-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement]: Hot reload for Mono mods #438
Comments
As tempting as $100 would be, This is way out of scope for MelonLoader. The way Unity reloads assemblies in the editor requires a full AppDomain reload, which is just a big "nope" for us. we partially support hot-reloading of code on il2cpp games, by attaching visual studio as a debugger. That's sadly as far as we can go. |
You could probably do something similar to ScriptEngine for BepInEx, its not full hot-reload, but you can destroy the existing plugin behavior and load the new assembly in its place to get something very similar. https://github.com/BepInEx/BepInEx.Debug/blob/master/src/ScriptEngine/ScriptEngine.cs |
Very well, i will open this back up for discussion and see if we can sort of implement this |
Yes, partial reload would still be helpful. |
Mono doesn't have hot reloading as a feature, and otherwise you'd have to reload the entire domain, which comes with its own issues. |
The idea was to have Mods faux reload and just reattach the new assembly. |
This also comes with its own issues. There is a LOT to consider when doing such operations |
Describe the new feature or enhancement
I'm putting a bounty of $100 USD on this feature which would allow me to reload a mod I'm working on in a game like ChilloutVR without needing to restart the game.
The text was updated successfully, but these errors were encountered: