Search Unity

Configure Project for Editor Playmode

Discussion in 'Editor & General Support' started by The_Arrival, Sep 3, 2019.

  1. The_Arrival

    The_Arrival

    Joined:
    Dec 3, 2014
    Posts:
    82
    Hello,

    in the current Project we develop agains Staging and Production Instances of Servers and i want to make sure, that when using the Editor Playmode, the Project uses the Staging versions.

    - We have a native lib for staging and another one for production. They get switched using the ImportSetting flag for Android.
    - We have AdobeTracking, which gets configured by having the right version of of the file ADBMobileConfig.json

    When building the Player i use the BuildPipeline to alter the Import settings and swap the config files according to the desired flavor/configuration

    What i´m trying to achieve doing the same, BEFORE Unity build the Editor-Version of the player when hitting the Play-Button in the Editor. Whatever i tried seems to be to late and AFTER the player has been build.

    Is there a way to do this?