This seemed to work for me (5.3) and didn’t require changing any of the the module names or adding new modules:
- Rename the
.uproject
file to the new name. This change the name of the directory that the game data is stored in. You should not need to edit anything in it. - In your
Source
folder, rename the two.Target.cs
files. Edit the files to make the classes match the file names. These will control the name of the executable. You can still reference your old module names. Those are not user-facing so it should not matter what they are called. - Delete your
Binaries/Win64
,Intermediate
, andSaved
folders. Regenerate the project files and rebuild. NOTE: deletingSaved
will reset your editor preferences. You may be able to only delete as subset of those, but this is the safest option. I had some errors referencing the old name if I didn’t delete those.
When you rebuild, it should use the new name.