Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Rename a Unity Project?

Tags:

unity3d

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?

like image 912
Kamran Bigdely Avatar asked Aug 22 '17 19:08

Kamran Bigdely


People also ask

How do I rename a folder in Unity?

Yeah, just click the folder and leave the mouse around for a sec, the folder name becomes editable.


1 Answers

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

like image 93
Kamran Bigdely Avatar answered Sep 16 '22 13:09

Kamran Bigdely