How to properly rename a C++ project without breaking anything

It’s not easy, you have to do it all manually as there’s not really an automated option. Adding the class redirects above will only fix parented blueprints, and tbh it’s not the cleanest method ever. You’d be better off just re-parenting all the blueprints that fails to compile when you open the editor to save yourself any weirdness down the line.

I would do this:

  1. Delete all VS files, Intermediatte, Saved, Build & Binaries folders.
  2. Rename the UProject file and edit it in notepad to ensure there’s nothing in there that goes by the old project name
  3. Check the Config files for any /Script/MyGame entries in ] brackets, and rename them
  4. Rename all of the source files manually in Windows, then do a big ol’ fine-and-replace pass on them all.
  5. Regenerate VS project files

If it doesn’t compile after that, I’ll be very surprised. Find and Replace will probably miss a bunch of things, but this strikes me as the cleanest method.