Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Remote settings not working

Discussion in 'Unity Analytics' started by John1515, Dec 28, 2017.

  1. John1515

    John1515

    Joined:
    Nov 29, 2012
    Posts:
    248
    EDIT: Lol, in Play mode, development settings are always used...


    I have a public bool in a script and Remote Settings component on the same gameobject.
    Remote settings is mapped correctly to the public bool. But it just doesn't have any effect. It takes whatever value I set in the editor inspector, and doesn't change when I start the game.

    I am expecting the bool to change according to the remote settings, correct?

     
    Last edited: Dec 28, 2017
    Kaldrin likes this.
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes, that is correct. In Play (development) mode, the Development settings are used.
     
    Kaldrin likes this.
  3. kreso

    kreso

    Joined:
    Sep 7, 2013
    Posts:
    145
    After 45 minutes of hair-puling - world makes sense again.
    Maybe it would be valuable to point that out.
    I was using RELEASE only, and didn't understand why it wasn't moving into the editor.
    I did read that if I select 'Dev version' for build, it will use dev version. Why not simply read that flag and act accordingly?
    I guess I can see reasons why not.
    Still a bold note would be welcome (somewhere in editor).
     
    Kaldrin likes this.
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    The Editor does use the Development settings by default.
     
    Kaldrin likes this.
  5. kreso

    kreso

    Joined:
    Sep 7, 2013
    Posts:
    145
    Yes :) The editor uses the Development settings by default. I did not understand this until I visited this post.
    I was hinting maybe it could be stated more clearly that editor uses development settings by default.
    Or maybe not! Just my 2c.

    I guess in my ideal world - editor would read the build setting if game is in 'development mode' and then read appropriate remote settings within the editor.

    Thanks!
     
    Kaldrin likes this.
  6. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Kaldrin and kreso like this.