ManlyMarco / RuntimeUnityEditor

In-game inspector and debugging tools for applications made with Unity3D game engine
GNU General Public License v3.0
772 stars 98 forks source link

.Net Remoting added / external companion app #8

Open wh0am15533 opened 5 years ago

wh0am15533 commented 5 years ago

.Net Remoting server added in fork https://github.com/wh010ne/RuntimeUnityEditor

Includes test client. Passes game objects back and forth with edits successfully. End user/developer would need to customize for their own game/Assembly-CSharp.dll but it works perfectly. Some games (and some Unity objects) still be the [Serializable] attribute, working on Harmony patch for that. I have a WCF version too, but Remoting seems to work better and more reliably given the .Net version limitations.

Note: For now, I use 'Train Valley 2' for testing my fork, until I find something smaller. All code is commented to see where end user/developer should replace with their code.

ManlyMarco commented 4 years ago

Thank you for the good work. For now, I don't have plans to move forward with the external app idea (short on time and the current setup works "good enough"). I'll come back to this whenever the time to implement this comes.

The serialization could be done with MessagePack and a custom resolver.

Horse played around with a different implementation of this idea (he was the one who did the IPC proof of concept that I linked), you can talk to him on the BepInEx discord server if you want.