Hello guys!
I am was working on my code today, when I realized that not only my code changes do not get hot-reloaded into the editor anymore, but also my Compile Button is missing:
Some time, it was there, this project started as BP only but I am using C++ since many many months.
What I’ve already tried:
I have rebuilt the solution multiple times
Deactivated my plugins
Cooked the Project (only some ‘known’ warnings, no errors)
Deleted the .vs, Binaries, Build, Saved and Intermediate folders as well as the solution, Generated Visual Studio project files, rebuilt, cooked…
Created a new cpp actor class
Refreshed Visual Studio Project in the editor
The only other thing I could imagine causing this was updating to a newer Visual Studio 2017 version which caused me some compile trouble which I managed to resolve.
Has anyone some Ideas or what could be wrong/experiences with that problem?
Right click your uproject file and open it with notepad or any text editor. Make sure your project has the “module” section. If it isn’t there, add it like in the image above with your project name and save. You should see the compile button now along with hot-reloads.
I had the same issue that you described in the post and got it fixed by adding the module part (which was missing in my case after upgrading from VS2017 to VS2019). Unfortunately I don’t have any more clues to what might be the cause.
I’ve modified my Project.h & .cpp files because I wanted to add a virtual shader source path, so I could use .usf files in my custom material nodes. Therefore I worked on my Project Module.
As I am not very experienced in working with modules in ue4, I’ve followed this forum post for the implementation: LINK
Here are the files, can you spot something suspicious in there? I’ve also tried to add my “HarrisonProject” Module to the HarrisonProject.uproject, but this changed nothing.
HarrisonProject.h:
// Copyright by Felix Voigt
#pragma once
#include "CoreMinimal.h"
#include "ModuleManager.h"
//Project Module to add virtual shader files
//https://forums.unrealengine.com/development-discussion/rendering/1562454-virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download
class FHarrisonProjectModule : public IModuleInterface
{
public:
virtual void StartupModule() override;
virtual void ShutdownModule() override;
};