Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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


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