Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug Remote Config Json forcibly convert double to long issue

Discussion in 'Unity Remote Config' started by jellyzipsa, Apr 10, 2021.

  1. jellyzipsa

    jellyzipsa

    Joined:
    Aug 20, 2020
    Posts:
    1
    Hi, i found some weird issue when i use Remote Config with json value.
    When i try to use double without decimals, like 5.0, value after saved appears as 5. not 5.0.
    But it is not for double with decimals, like 5.1.
    Problem is, i intend that value should contains double type value, which always can be changed to 5.1 or some other double value and my code is also implemented as well.
    But if the value is 5, it is considered as long, not double, and runtime error occurs.
    Is there anyone else who suffer from same problem?
    And i wonder whether it could be fixed.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Could you show your code that demonstrates the issue?