C++ class not showing up in Visual Studio

Hi !

Right click on your .Uproject file => Generate visual studio project file => reload your solution & rebuild

1 Like

Hey there,

I recently started to learn a bit more about C++ and UE4. A few days ago, I was able to create a new C++ class in the editor which then opened Visual Studio where i was good to go.
However, today i wanted to create an AIGuard class and the C++ asset compiled, but there is no corresponding .cpp or .h file in my visual studio project. There are .h and .cpp files in the Source folder of my project, but they are not showing up in VS.
Hope you guys can help me out with this :slight_smile:

231627-noguard.png

231626-guard.png

Thanks in advance :slight_smile:

Check log in /Saved folder. It contains some information explaining project generation failed.

Somehow, this option does not update my .sln file.
I also deleted the sln file and tried to generate new VS project files, but nothing is really happening. The generating program is executing and closing like everything is fine, but nothing gets updated or generated really.

So i found out that my generating project files is actually failing because of a missing simplygon dll file.
I installed Simplygon using Simplygon for UE4 installer.
First image is from the logs folder, second one is from the generating project files log output.

231634-simplygon.png

UPDATE: In my UE_4.18 > Engine > Plugins Folder, there is a SimplygonUE4 folder with the SimplygonUE4.uplugin file.

is your version of SimplygonUE4 compatible with 4.18 ? ( that could fail to build but not fail project generation though)

You should try installing that plug-in direclty in your project ( copy past the SimplygonUE4 folder into sealthgame/Plugins/ and try again )

it is the newest simplygon version so it shouhld be compatible with 4.18 ^^
pasting the Plugin directly into my project didn’t work either :confused:

Maybe i have to reinstall the engine and perform my LODs in simplygon UI instead of the UE4 plugin. It seems like the Simplygon UE4 plugin breaks my Engine somehow.

Strange things, looks like the plugin is requiering a module named “SymplyUE4” any info about that in Symplygon docs ? maybe you should ask on their forum ?

it actually was simplygon… couldn’t find anything in the simplygon docs, but i reinstalled the engine, disabled the simplygon ue4 plugin and that helped ^^

maybe a simplygon ue4 plugin install would work now aswell, but I’m glad that i can work on my projects again ^^

thanks for the help. Marked this as answered, since my problem is solved for now, but this feels more like a workaround than an answer. Hopefully there will be more detail about this in the future.