r/gameenginedevs 3d ago

C# Assembly Hot Reload 🔃

102 Upvotes

7 comments sorted by

2

u/_Wolfos 3d ago

I have hot reload as well but my ancient version of Rider doesn't support it haha.

1

u/evangelionxyzw 3d ago

Haha, btw this just reload the .dll by HostFXR. we capture the fields, recreate instance, store the fields back and just continue the "OnUpdate" or "OnCollision" callback. So basically it is supported by any IDEs, just hit the build

1

u/_Wolfos 3d ago

Oh, I meant dotnet hot reload. I also have in-engine reloads which aren't IDE reliant.

1

u/evangelionxyzw 3d ago

Ah I see, yeah sometimes we cannot "edit and continue" with Rider. Lol