Hot-reload doesn't work and there are some errors in empty project

Hot-reload doesn’t work and there are a few errors in the empty project.
There is only such a problem in UE5, in UE4 there is no such problem.
Tried to do a hot-reload in Rider IDE the same thing, but if you do a hot-reload in Editor, then everything works fine.
I also tried to build UE5 from the source, it did not fix anything.
P.S. Sorry for my English

I ran into this, too. I had to:

  1. turn off hot reload in the lower-right popup menu
  2. open the project in visual studio
  3. quit the unreal editor
  4. rebuild the project in visual studio
  5. open the project in unreal editor again
  6. turn on hot reload

(Maybe there was another quit-and-restart-the-editor-again, I forget.)
Then it would work.

Maybe you meant live coding? There is no disable/enable hot-reload.
I meant when to compile the project (ctrl + shift + B) and changes are made without closing the editor
image

Yes – neither worked for me initially. I had to close the editor, re-build the project in visual studio, and then start the editor, before hot reload would work (and then I could turn on live coding.)
Also, I don’t think re-building in Visual Studio makes it re-load anymore, it seems I have to re-build from within the editor for the hot reload to “take,” once I got it working.
But then I went back to live-coding, because it works better for me, now that they improved it.

1 Like

Thanks for the answer, but I need hot-reload, not live coding (hot-reload works better for me)

Yes, and as I said, I got that working first, before re-enabling live coding.
If you close the editor, and rebuild the project in visual studio, and then open the editor again, then hot-reloading should work. (At least as long as you compile from the editor, not from visual studio.)

This is understand, just a hot-reload from the editor works worse (in UE4) according to my observations. In addition, hot-reload works for other people without problems:
UE5 C++ Advanced Multiplayer True FPS Tutorial #1: Replication and Weapon Swapping - YouTube (10:05)
UE5 C++ Tutorial | Introduction to Unreal Engine 5 with C++ in less than 90 Minutes - YouTube (1:04:22)

This is still not working, I have added code in second game module (not a plugin), and cannot hot reload when compiling with lower right icon, or VS studio.

The only way i’ve managed is hitting recompile, in the Tools > Debug > Modules window. This will require me to recompile a second time. And also pull out that stupid window every time.