Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Build Settings - Build location

Discussion in 'General Discussion' started by Shmolin, Jan 25, 2021.

  1. Shmolin

    Shmolin

    Joined:
    Mar 12, 2019
    Posts:
    5
    Hi all,

    Not sure where else to stick this question.

    Following a tutorial on Unity and when we come to build the game it states:
    "Note: Do not save it in the same folder as your project; select a new destination.".​

    Does anyone know why we shouldn't save a game build to the project folder?
    Is there a technical limitation? Best practice from Unity? Trying to limit beginners issues/confusion?

    Thanks!
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,580
    For simple reason.
    Project contains specific files for the project.
    Build contains own files.
    Hence to avoid mistakes and confusion, they should be kept apart.

    If you do things incorrectly, you have great chance, to confuse which files belong to project and which to build.
    Also, you should be prepared, to have multiple build versions. So you should be storing them in a separate destination.
    Also, when you using version controlling, you don't want by accident include build files.
     
    Shmolin likes this.
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,504
    It's so you don't confuse which files belong to the build and which files belong to the project. Mistaking project files for the build files might not end up well if you decide to delete them. I suggest building to an empty folder so that you know exactly which files Unity produced for your build.
     
    Shmolin likes this.
  4. Shmolin

    Shmolin

    Joined:
    Mar 12, 2019
    Posts:
    5
    Thanks for both your input.
     
  5. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    What I do is just create a "Builds" folder, then create sub folders there for each project. Builds go there.
     
    Antypodish likes this.
  6. Shmolin

    Shmolin

    Joined:
    Mar 12, 2019
    Posts:
    5
    That's what I ended up doing; I think I overcomplicated it from the wording.
    I thought it was meaning it couldn't go anywhere in the 'C:\Unity\[PROJECT]' folder (root or sub-folders).

    I ended up creating 'C:\Unity\[PROJECT]\Builds' and then taking Antypodish's advice into consideration about version control, I would exclude that subfolder.