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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Where does Unity store project directories?

Discussion in 'Scripting' started by duke, Jun 12, 2013.

  1. duke

    duke

    Joined:
    Jan 10, 2007
    Posts:
    763
    On the welcome screen, you're presented with a list of projects. Where is the file for that stored? I'd like to piggyback it to get that list elsewhere.
     
    jdkmaths likes this.
  2. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,066
    On Windows it's in the Registry (HKEY_CURRENT_USER\Software\Unity Technologies\Unity Editor 4.x).

    MacOS, I'm guessing in a plist?
     
  3. tousifkhan

    tousifkhan

    Joined:
    Jul 10, 2013
    Posts:
    1
    I found it here
    C:\Users\Public\Documents\Unity Projects

    in public directory
     
    Armor-Blaze and Zauberfaedenpony like this.
  4. darkoleptiko

    darkoleptiko

    Joined:
    Dec 2, 2013
    Posts:
    2
    In MacOS the data is stored in a plist file:

    ~/Library/Preferences/com.unity3d.UnityEditor4.x.plist

    you can use the command line tool "defaults" to read the data like this:

    defaults read com.unity3d.UnityEditor4.x | grep RecentlyUsedProjectPaths
     
  5. Darlanio

    Darlanio

    Joined:
    Apr 21, 2019
    Posts:
    2
    People deciding for a developer that the environment will only save a new project in the Documents folder, not thinking for a second that a developer probably has more than one harddrive and probably do not want the project in Documents are very much mistaken... and to place that setting in registry on windows is even more so a mistake.

    1. Move setting for default folder of projects to a configuration file and make it editable from the menu in unity.
     
    CoulsonLMD likes this.
  6. vedantharjai

    vedantharjai

    Joined:
    Nov 26, 2020
    Posts:
    1
    Thanks found it!
     
  7. hendycoc8888

    hendycoc8888

    Joined:
    Nov 30, 2020
    Posts:
    2
    I found it here:
    C:\Users\(the user using it)\AppData\Local\Temp
     
  8. mcgFort

    mcgFort

    Joined:
    Jan 19, 2022
    Posts:
    1
    For the fps microgame at least it's inside of "C:\Users\[Your Username Goes Here]" by default.
     
  9. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    I believe the OP was asking where the "list" of projects is stored. Not where projects are stored (which can be in any location). "Where is the file for that stored", singular.
     
    Bunny83 likes this.