How do I move a C++ class to a different folder?
I would like to move a C++ class to a different folder. When I try to drag the class into the Content folder it says "C++ classes cannot be moved or copied." When I try to move it to a subfolder within C++ Classes, it says that the folder "is not a valid place to drop assets." What is the best way to move C++ classes to different folders? Should I do it in Windows Explorer? Do I need to just make a new class? If so, do I also need to remake all classes that derive from the class?
If you move C++ Classes around you potentionaly mess them up. If you want to move them do it in the Explorer (but keep them in the Source folder!) and right click on your .uproject and hit Regenerate Project files. Fix up the potential mess you created and Compile. Done.
answered Aug 22 '17 at 02:00 PM
What I do is a make a copy of the file i need moved, update every dependency, make sure everything works as before with the new file, then delete the old one.
Usually takes like 1-2 min of my time and i don't need to fight with anything in the process.
answered Jan 10 '19 at 08:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here