Search Unity

how to check which platform is active for the project? (from the project files)

Discussion in 'Formats & External Tools' started by mgear, Dec 4, 2020.

  1. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,435
    i'd like to check which platform some project is set to, without opening unity.

    so far have found these:
    - Assembly-CSharp.csproj has some build target info, like StandaloneWindows64:19
    - Library/PlayerDataCache/ most recent platform folder could be the one that is active
    - not found in build settings anymore, https://answers.unity.com/questions...latform.html?childToView=317348#answer-317348
    - ProjectSettings.asset does get touched if change platform, but its not changed.. (no platform info)
    - Library/EditorUserBuildSettings.asset has few bytes (4 ints?) changed, but not sure..

    are there some better ways?
     
  2. ryanmillerca

    ryanmillerca

    Joined:
    Aug 12, 2012
    Posts:
    143
    Tonio1308 likes this.