A question about C++ class(Help me TvT)

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


image

you cant see normal c++ classes there … only the unreal ones

1 Like

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.
image

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 :smiley:

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 is?

It has to match caps exactly. Your class name (and constructor) is “MyTpcTarget” but it should be “MyTPCTarget”.

1 Like

Wow ! my problem solved, thank you again! :smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.