Search Unity

How to load remote config for version build of game?

Discussion in 'Unity Remote Config' started by thantieuhodo91, Nov 29, 2019.

  1. thantieuhodo91

    thantieuhodo91

    Joined:
    Dec 3, 2014
    Posts:
    9
    Hi everyone,

    I am trying to integrate Unity Remote Config to my game.
    Now I want to setting data for each different release version.
    (Because I often update boss, enemy controller scripts, so I need to config the data of them to update the balance of game).

    What should I do to setting remote config for many version?
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,779
    For example a text file, with properties to read out.
    You can use JsonUtility for example, to help with that.
     
    thantieuhodo91 likes this.
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you elaborate what data you want to update? You mention enemy controller scripts, do you mean variables within your scripts?
     
  4. rambod

    rambod

    Unity Technologies

    Joined:
    Mar 2, 2018
    Posts:
    58
    @thantieuhodo91 with Remote Config v1.1.0-preview onwards, you can now create custom environments. My suggestion would be to create a separate environment for each of the app versions, and have the runtime for each version fetch the right environment. This will give you the most flexibility.

    The other option, but not as scalable, would to be use a rule for each version. The downside to this is that you wouldn't be able to have different keys between version, only different values for keys.