I have a game and when I export it it is called Bounced! but in windows task manager the process appears as UE4.exe but with the logo of my game, how can I change this to Bounced.exe?
- \$\begingroup\$ could it be because the compiled game is running on UE4, I mean I've played games before that show up in task manager as the engine their running on before. \$\endgroup\$Pow– Pow2024-02-02 13:00:10 +00:00Commented Feb 2, 2024 at 13:00
2 Answers
The name of the executable is dictated by the name of your *.uproject project file when you first create your project and package it, so if you already have an existing project called something like "UE4", you won't be able to change the name of the executable - it will always have the same name as the name of the project.
To change it on an existing project, it seems like you'll have to make a new project with a new *.uproject file, copy the old project over to the new project directory, delete the old .*uproject file, and then run it again and repackage it. Alternatively, you can rename that *.uproject file and then make any code changes to reference the new project name as needed, depending on if your project is blueprint-based or not. (Source)
- \$\begingroup\$ The source you link doesn't mention creating a new project and copying it over. Instead it says to rename the uproject file for a blueprint project, or make additional code changes for a code project. Is there a reason you'd recommend the new project route over this approach? \$\endgroup\$2021-06-07 22:38:01 +00:00Commented Jun 7, 2021 at 22:38
- \$\begingroup\$ The executable has the corret name but in Task Manager doesn appear correct \$\endgroup\$Roberto– Roberto2021-06-08 06:20:35 +00:00Commented Jun 8, 2021 at 6:20
Older versions of Unreal might be a little different, but this worked for me on 5.3:
- Rename the
.uprojectfile to the new name. This does not change the executable name, but does change the name of the directory that the game data is stored in. You should be able to just directly rename it without editing anything inside of it. - Open your
Sourcefolder and rename the two.Target.csfiles. Edit them and change the class name to match the new file names (without the.Targetpart). The name of the non-editor "target" will be what is used for the executable name. You do not need to change the names of the any of the modules inSource; just change the.targetfiles. - Delete your
Binaries/Win64,Intermediate, andSavedfolders, regenerate the project files and rebuild. You might be able to omit deleting some of them, but I find that this is the safest option. NOTE: deleting "Saved" will reset your editor preferences and source control settings.
When you do a new build, it should now use the new name.
- \$\begingroup\$ OP is asking about changing the process name that appears in the windows task manager. It looks like your solution is addressing the executable name (i.e. how it appears in the file manager). Can you confirm that your solution also changes the task manager name? \$\endgroup\$Pikalek– Pikalek2024-02-02 16:16:35 +00:00Commented Feb 2, 2024 at 16:16
- 1\$\begingroup\$ Yes, the task manager (at least in Windows 11) uses the executable name by default. \$\endgroup\$Dan S– Dan S2024-02-03 19:06:32 +00:00Commented Feb 3, 2024 at 19:06