Editor does not recognize any new code, even in a new project

I had a problem with adding new C++ classes in the editor earlier, but it turned out it was some bad code on my end, and I got it to add a new class.

Now, though, I have the same problem: The editor does not recognize any new C++ classes I have added, even though I used the Editor to create the classes and it compiled with no issue. I can still compile/add code to existing classes fine, and the new .h and .cpp files are indeed created (and even recognized in VS), but they do not show up in the Editor and I can’t create classes based off of them.

I have even tried it with an entirely new project, but it still doesn’t work. Any new C++ files added using the Editor are created, but do not appear in the Editor.

Hey,

Does the Output Log (File → Developer Tools → Output Log) show any errors?

Also, can I just check that you have the automatic hot-reload enabled (Editor Settings → Miscellaneous → Hot Reload → Automatically Hot Reload New Classes).

Thanks.

Hot-reload is enabled, and the little popup at the bottom right that says it hotloaded does come up when adding code.

Here is the log I got. Too big to paste here.

Can you see your code files in /Source directory?

Yes, in both Windows explorer and in Visual Studio. They even show up immediately in VS.

What parent class are you using? Just checking as we only show UObject-based classes, so if you used “None” as a parent then that class won’t appear in the Content Browser.

It appears for the purpose of trying to fix this, I had been using empty classes, and using Actor as a base class now works, even with new folders.

However, when this problem first began, I wouldn’t have been making an empty class (because I’m not comfortable enough with C++ yet), so I guess that mystery is still there. I guess I had offended the spirits in my computer that day or something.

But hey, it works now, so thanks.