UE 5.1.1 Creating 2 copies of new C++ files

Today UE 5.1.1 is creating 2 copies of new C++ classes that I create and it is trashing my project causing me to have to roll back to the last commit. I have no idea why it started doing this today. Any idears?

I like my .h files to be in a public folder and .cpp in a private folder. When I create the class I am selecting Public and it creates the right folders and places the files in them but also creates a duplicate of the .h and .cpp files and places them in the root source project directory /source/projectname/

After it does this no matter what I do (rearrange the files, delete the files, completely delete the originals and the copies) I cant get it to compile and the editor will crash when it loads with memory access errors thus having to roll back to the last commit.

Issue turned out to be that I was creating a class with the same name as the unreal project and I guess it doesnt like that very much.

1 Like

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