Search Unity

Switching project settings

Discussion in 'Editor & General Support' started by tencnivel, Jul 5, 2021.

  1. tencnivel

    tencnivel

    Joined:
    Sep 26, 2017
    Posts:
    39
    Hi, I manage several applications from the same Unity project.
    Each game has its own project settings (different scenes, application identifier, version, keystore, icons etc...).

    I am looking for a way to switch from application to another.

    NOTE that I am ok to keep doing a few things manually (eg. changing the scenes in the build, the project Id in the services, different from what is discussed here https://forum.unity.com/threads/switching-project-ids-with-scripting.404852)

    What I did so far : I wrote some scripts (in attachment and inspired by https://support.unity3d.com/hc/en-u...players-by-command-line-or-auto-build-system-) that runs in editor mode and that programmatically overwrite the settings.

    But this is not viable because I might have changed a setting that is not taken care of by the script.


    In the folder `ProjectSettings` there are some files which seems to contain all the settings I need to change when switching from one project to another, especially `ProjectSettings.asset`.

    If I keep a copy of ProjectSettings.asset for every application, would it work ? say `ProjectSettings.app1.asset` and `ProjectSettings.app2.asset`

    Thanks!
     

    Attached Files: