I’ve*1 managed to do this on a cpp project by:
- renaming the uproject
- adding a new module with the new name inside the uproject under the modules section
- add the new module to the modules names on the target.cs
- rename project.target.cs and projecteditor.target.cs
- add a folder with a .build.cs for the new module.
- it’s critical that both the old and new .build.cs have the same dependencies otherwise it will fail weirdly.
- add a cpp stub module for the new module
- make the new module export a game module using IMPLEMENT_PRIMARY_GAME_MODULE and made the old module just implement it with IMPLEMENT_MODULE
maybe it was too much (i wonder if creating a new module was necessary or not) but it worked.
*1 with the help of Daekesh on discord. thanks