My compiler can’t index my C++ files, and I can’t show this C++ class in the Unreal Engine compiler, but it works

My compiler can’t index my C++ files, and I can’t show this C++ class in the Unreal Engine compiler, but it works
you cant see normal c++ classes there … only the unreal ones
That can happen sometimes. Often it’ll clear up on its own after a relaunch, but it sometimes doesn’t.
It can often be fixed in editor by refreshing the project, but, again, sometimes it doesn’t.
If it still doesn’t show, you’ll want to clear data and rebuild. Make sure the engine is closed during this.
In your project folder, delete your .sln file along with your binary and intermediate folders.
After that, right click your .uproject and click generate visual studio project files.
From there, just open the .sln and build.
Thanks for the reminder, I know now
thank for your help ,but its happen other question when i refresh Rider Uproject Project , i have no idea about this:cry:
Do you have a .Target.cs file?
It should look something like this
For you, the file would be “MyTPC.Target.cs” with the class name being “MyTPCTarget”
It has to match caps exactly. Your class name (and constructor) is “MyTpcTarget” but it should be “MyTPCTarget”.
Wow ! my problem solved, thank you again!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.