branchrust_reboot/main/disable_domain_reloadcancel
22 Commits over 0 Days - ∞cph!
Add support for doubles,floats and primitives in reset static field gen.
Add reset static field attribute to base mono behaviour and handle all of the inherited types with static fields. This will ensure we also catch new static fields in the future without manually adding attributes
Handle dictionary/list/native collections/abstract classes.
Change domain reload toolbar color/tooltip when enabled without CLIENT and SERVER constants
Mute hidden value finalizer if we're entering playmode with domain reload disabled.
Set client entities internal value instead of resetting the hidden value itself
Add a domain reload toggle to the toolbar, add editor settings to disable both compiler simulator and domain reload toolbar buttons.
Fix conbutton states not getting reset.
Handle static array constructors, skip convars when resetting static fields.
Reset pools and fix evil runtime fields on scriptable objects.
- Craggy Island now runs, as far as I can tell everything is functional but I'll test it a bit more with other scenes.
Reset fields on mountables and prefab attributes, craggy island still has more issues I need to fix before its playable again.
Jank fix for empty types in code gen by counting fields.
Fix inputs being registered twice with domain reload disabled, everything in Playground seems to work at this point. I can hop into playmode within 7 seconds which is awesome.
Handle resetting list components in code gen, reset LeanTween fields manually. We can now walk around, aim, shoot -- just some UI bugs left.
Add support for actions in domain reload code generation, fix main menu fields not being reset:
- We can now get into the game and walk around.
- Some inputs are still kinda broken, some UI gets stuck.
Just a few more fixes and it should be functional.
Add codegen handling for readonly and unity objects .
Compile everything only when CLIENT/SERVER/UNITY_EDITOR symbols are active to avoid having with build compile errors, this thing only needs to run in editor anyway.
Add code generation to reset static fields on any partial types with the "ResetStaticFields" attribute.
Reset static fields on scripts to allow for disabling domain reload, we're now able to get ingame without a reload but there is still a ton of bugs to fix.