How to Rename a Unity Project?

Unity3d

Unity3d Problem Overview


I want to change the name of a Unity project to something else such that Unity Editor shows the new name at the top or when I open a script using Visual Studio, it shows the new name at the top of VS. How to do that?

Does changing the project name change the game's name (the name that appears on top left corner of the game window)?

Does changing project name change the name of the game's executable file?

Unity3d Solutions


Solution 1 - Unity3d

To change Unity project name:

  1. Change the unity project folder name (the parent folder of 'Assets' folder)
  2. Remove any file with .sln or .csproj suffixes under the project folder. (Unity will regenerate them)

> Does changing the project name change the game's name (the name that > appears on top left corner of the game window)?

No! To change the game's name go to Edit > Project Settings > Player > Product Name and change it to the new name.

> Does changing project name change the name of the game's executable > file?

No! when it comes to create a build for your game (by File > Build Settings), Unity asks you about the file name. That name becomes the name of your executable file (on PC).

> How do I open the project after doing all this?

In the top right of the Unity launcher, click 'Open'. Find and select the project folder (i.e. parent folder of the 'Assets' folder) and click 'Select Folder'. The project opens in the Unity Editor.

> Does this technique work in Unity v5.6.3?

Yes!

> Does this technique work in Unity v2017.2.0b6 ?

Partially! Step1 (Renaming the project folder name & deleting the .csproj & .sln files) still works, However Step2 (Edit > Project Settings > Player > Product Name) does not retain changes to Product Name or Company name for some reason (most likely a bug)

Step 2 (Change Game Name) Workaround:

-Close Unity.
-Directly edit those field values inside the ProjectSettings\ProjectSettings.asset file with your favourite text editor.

-Open Unity, confirm field has changed in Edit > Project Settings > Player > Product Name

Solution 2 - Unity3d

take notice that there is a "product name" and a "project name". Either way, changing project name and product name did not change the name displayed in the services window (or project dashboard in unity id webpage)

Solution 3 - Unity3d

Changing the 'project name' and 'product name' is great for local projects.

If your project is in any way using Unity services (cloud things), then rename the project via it's Unity (web-based) dashboard. Quickest way there is the three dots inside the Unity launcher, next to every cloud-services-enabled project.

This way, Unity will take care of renaming the project across it's services. Not just your local folder.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKamran BigdelyView Question on Stackoverflow
Solution 1 - Unity3dKamran BigdelyView Answer on Stackoverflow
Solution 2 - Unity3dDanielleView Answer on Stackoverflow
Solution 3 - Unity3duser18099View Answer on Stackoverflow