Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

ProGrids BUG: Preferences on Swedish system

Discussion in 'World Building' started by magosx, Jun 29, 2018.

  1. magosx

    magosx

    Joined:
    Jun 29, 2018
    Posts:
    1
    (ProCore forums linked me here)

    There seems to be a bug with the ProGrids preferences when used on a system that uses comma as a decimal separator (in my case Swedish).

    Looking in regedit the colors for the grid are saved as:
    "RGBA(0,900, 0,460, 0,460, 0,150)"

    And when read it's interpreted as "0, 900, 0" (bright green instead of light red).

    To "fix" I had to remove the "gridColorX/Y/Z" keys at "HKEY_CURRENT_USER\Software\Unity Technologies\Unity Editor 5.x".

    I'm using Unity 2018.1.5f1 Personal (64bit).
     
  2. YurySedyakin

    YurySedyakin

    Joined:
    Jul 25, 2018
    Posts:
    5
    Something along these lines happens to me on russian Windows system too. Interestingly, it works normally when .NET is set to 3.x, but once (an empty) project is switched to .NET 4.x ProGrids starts to spam the console with those setting parsing failures (and their consequences)
     
  3. Wokarol

    Wokarol

    Joined:
    Aug 1, 2017
    Posts:
    13
    .NET 3.x doesn't have this problem becouse ProGrids uses ToString() to store color and float.Parse() to restore it. In .NET 3.x those functions dontd take region into accouta, in .NET 4.x they does