Search Unity

[RESOLVED] RemoteSettings.Completed does not return the correct value

Discussion in 'Unity Remote Config' started by Fangh, May 14, 2020.

  1. Fangh

    Fangh

    Joined:
    Apr 19, 2013
    Posts:
    274
    Hello.
    This is how my project looks like :
    2020-05-14 22_14_41-Remote Config Dashboard.png 2020-05-14 22_14_49-Remote Config Dashboard.png 2020-05-14 22_15_26-.png Inspector.png Inspectpor2.png
     
  2. Fangh

    Fangh

    Joined:
    Apr 19, 2013
    Posts:
    274
    This is my code :
    Code.png

    And this is the console :
    Console.png

    Why does the value is equal to TRUE ?
    I expected it to be equal to FALSE.

    (sorry for the double post, I can't put >5 images per post)
     
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
  4. Fangh

    Fangh

    Joined:
    Apr 19, 2013
    Posts:
    274
    Oh ! Right ! Thank you ! Sorry !
     
  5. Fangh

    Fangh

    Joined:
    Apr 19, 2013
    Posts:
    274
    It works only once...
    Now it does not work anymore :
    code.png
    remoteconfig.png

    console.png
     
  6. Fangh

    Fangh

    Joined:
    Apr 19, 2013
    Posts:
    274
    And why the cached values are not equal to the last downloaded value ?
     
  7. Fangh

    Fangh

    Joined:
    Apr 19, 2013
    Posts:
    274
    ok I added thoses 3 things (which the doc says is optional) and it's working !
    upload_2020-5-14_23-37-19.png
     
  8. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes, I would recommend to use the Sample code as is, get it working, then customize as necessary.
     
    Fangh likes this.