Cannot open source file name.generated.hc

Hi,

You need to do a little more than just regenerating VS project files. Close both the Unreal Editor and Visual Studio. Open your project directory and delete all these folders - .vs, Binaries, Intermediate, Saved [optional], and also YourGame.sln files. Make sure that the Config folder is there and that you do NOT accidentally delete it!

Next, right click on the YourGame.urpoject and select Generate Visual Studio project files. Open the .uproject file once it finishes regenerating. The Editor will prompt you with a missing .dll module again and will ask you to rebuild the solution. Click Yes and it will start rebuilding. It should now successfully compile if there are no bugs in your code.

Hope this helps :slight_smile:

20 Likes