How to change default path for .h and .cpp files?

Hello, when I try to add a new class to my project the Editor suggests me the same location for .h and .cpp file. I’d rather change that to Private/Public or Header/Source (whatever) but I don’t know how.

44779-location.png

Hello yateam,

Do the following:

  • Close ue4 editor and visual Studio
  • Navigate to source/YourProject folder
  • Create Private and Public folders
  • Move cpp files into private folder and h files into public folders.
  • Right click your uproject file
  • Select generate visual Studio solution files
  • Recompile the source

This will enable you to use public/private folders.

Cheers!

Thank you. I’ll try and let you know how that works for me.