Cpp hot reload button disappears

Hello !

I have a trouble with the Cpp hot reload button : it disappears each time I use it.
I open the editor the button is live and after the first hor reload the button disappears and the editor doesn’t reload the code. (my cpp functions aren’t in bp.)

This problem happens only since I updated to 4.11.0 (today).
My project was a blueprint project and I added a Cpp library after to add some functions that don’t exist in bp natively.

thanks for reading !

Hey mdonge-

Could you clarify a few things to help me test the issue you’re reporting. What exactly do you mean by a Cpp library? Are you adding a new class based on Actor/Character/GameMode/etc.? What functions/code did you add to the code class? When preforming the hot reload, are you compiling from Visual Studio or using the in-editor compile button? Let me know if there is any other information you can provide that will help me reproduce the bug locally.

Cheers

Since I don’t have an answer, I’ll add that I’m experiencing this issue. I’m using a C++ blank project, and if I build in VS2015 by right-clicking on my project and choosing build, the Compile button in the Editor disappears and the editor doesn’t seem to register the code changes. I’ve had this happen when both making a class based on Character and one based on Actor Component. I may try a few other base classes, but it seems to happen any time I build in VS2015. If I use the editor compile button everything works as expected.

Also, on the button disappearing, if I reload the project from the launcher it works fine again.

Hello !

So it’s a blank blueprints based project. I add then Cpp code in the editor and created a Blueprint library based. there is only function I can’ find in native BP.

The hot reload button in the editor, which worked until v4.11.0 seems to be broken because there is no hot reload (deleted function in the Cpp code are still there), and the button disappears just after that.

When I restart the editor, the button is there again but same behavior.

When I compile from VS2015 and then restart the editor, the code is loaded.
I don’t know if it’s more explicit :wink:

Thanks !

I tried to create a new project and add a class based on Character and Actor Component however I did not lose access to the compile button when preforming a hot reload. Does the button disappear each time you compile? Can you let me know if forcing a hot reload by creating a new class and adding a comment breaks the compile button as well?

When y ou say hot reload, are you referring to the compile button? I lose when build in VS. Not when using the button. And yes, I lose it every time I do this, without fail. I can add Pawn and GameMode to the classes that I’ve built from that do it.

A hot reload occurs when using the in-editor compile button or when building using Visual Studio with the editor still open. If possible, please create a new class. Doing so will trigger a hot reload in the editor. Please let me know if this causes the compile button to disappear. Also, if you edit this new code class and compile again (either in the editor or VS with the editor open) does this break the compile button as well?

So I tried to add a new cpp actor, the button “compile” in unreal doesn’t disappear anymore, even after deleting the new empty actor …

Problem resolved for me !
Thanks !