Search Unity

Migration 2017.4 to 2018.4. The problem with float.

Discussion in 'Windows' started by bmmshayan, Aug 18, 2019.

  1. bmmshayan

    bmmshayan

    Joined:
    May 20, 2014
    Posts:
    15
    Hello!
    In the 2017.4.xx version, all floating variables are written with a dot during input/output (for example: 123.45).
    I created a project in the 2018.4.xx version, all the numbers began to be written separated by commas (for example: 123,45).

    How do I configure the project so that it continues to understand the dot in the float variables?

    Solution:
    CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo("en-US");
    not global and i have some bugs with it.