HookDOTS is a modding library for hooking Unity DOTS games. By itself, it doesn't do anything.
Harmony is an excellent tool, but it fails at one important thing: Hooking unmanaged systems in IL2CPP builds.
HookDOTS was created to solve this problem. It's capable of setting prefix and postfix hooks for OnUpdate calls, for both managed and unmanaged systems.
Other features
- Defer actions until after specific worlds have been created (e.g. for plugin bootstrapping)
- And that's it. More DOTS-specific features can be added as needed.
HookDOTS was originally developed for modding the game VRising, but in principle should work with other Unity DOTS games built with IL2CPP.
The API project is what mods integrate with, and targets BepInEx 6.
For a quick look at how this library can be used, see the VRising thunderstore readme. (Click on the "For Plugin Developers" part with the small triangle next to it)
There is also an Example Project.