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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Remote Config Json forcibly convert double to long issue

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

  1. jellyzipsa


    Aug 20, 2020
    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


    Unity Technologies

    May 2, 2017
    Could you show your code that demonstrates the issue?