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

Project Version Number

Discussion in 'Editor & General Support' started by KamiKaze425, Feb 19, 2015.

  1. KamiKaze425

    KamiKaze425

    Joined:
    Nov 20, 2012
    Posts:
    207
    So I did try googling this, and I saw things about going into Project/Library and opening a *.asset file to see the version of Unity the project was using. However, my .asset files all have different values or do not seem correct. It looks like it's the Unity version it was created in but not the version last used? Since I've updated my Unity version in the middle of projects.

    Is there any way to actually check this? I had a habit of naming the folders with the version number, but I forgot to do that on the last couple of projects because they were done very quickly.
     
  2. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,614
    In Unity 5, there's a 'ProjectVersion.txt' file in the ProjectSettings folder which shows the version of Unity last used to open the project.

    In Unity 4, I don't think there's a clear and definitive way to find this out.
     
    KamiKaze425 likes this.
  3. KamiKaze425

    KamiKaze425

    Joined:
    Nov 20, 2012
    Posts:
    207
    I am still on Unity 4. But that led me in the right direction I think.
    In the ProjectSettings folder, there are more *.asset files. I still have the same issue where the files aren't all consistent, BUT it looks like ProjectSettings.asset updates properly. This is just speculation though, but it consistently has the highest version number on all 5 of my projects. And I recall the Unity version on 2 of them, and they seem to match up.

    Hopefully I'm right, haha. Thanks superpig!
     
  4. yoyo

    yoyo

    Joined:
    Apr 16, 2010
    Posts:
    112
    Should this file be checked into version control, or would you consider it a user-specific file?

    Possibly related, do you know why Unity 5 insists in checking out ProjectSettings\ProjectSettings.asset, even though it doesn't actually make any changes? I'm using Unity 5.0.2f1 64-bit on Windows 7, but ProjectVersion.txt indicates 5.0.1f1.
     
  5. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,614
    I would say it should be checked in, yes. Everyone on a project should be using the same version of Unity, so that version is a project-wide piece of information, not user-specific.

    Hmm. Sorry, no idea about that. Maybe something is getting changed and then changed back?
     
  6. almo

    almo

    Joined:
    Jul 14, 2010
    Posts:
    83
    Unity 5.5.0f3 doesn't seem to be updating ProjectVersion.txt. After working on the project, the contents of the file are still

    m_EditorVersion: 5.4.3f1
    m_StandardAssetsVersion: 0