I have a project and I was adding c++ code to it. Normally this shows up in its own folder. I would just create a new project but this is our project we have been working on for a while and is in perforce and we don’t want to loose our history.
I found a fix.
I edited the .uproject file to have a reference to the Engine module and then they all appeared and begin to work.
For anyone else with this issue just open your .uproject and then after “Description”: “” add a comma and then the reference (with your project name) to the engine:
"Description": "",
"Modules": [
{
"Name": "PUT_YOUR_PROJECT_NAME_HERE",
"Type": "Runtime",
"LoadingPhase": "Default",
"AdditionalDependencies": [
"Engine"
]
}
]
I think you missunderstood. I had a project with only blueprints. I added a C++ class and they don’t show up in the content explorer. They are still on disk.
If you use the editor to add the c++ files, they should show up automatically after the automatic build and hot reload. If you manually add the files, you need to right click on your .uproject file and click generate project file. WARNING: Doing this puts your .sln and .vcxproj file in a ‘vanilla’ state. (use [project_name].Build.cs to modify the build configuration.)
Also, be sure that you are adding your code in the proper locations.
The code was added automatically from the editor which has worked in the past. I had already tried both the generate project files and it did not work. The only thing that finally worked was my answer about editing the .uproject file above.