Search Issue Tracker
Fixed in 2019.1.X
Fixed in 2018.3.X
[Windows] Editor uses OS locale settings (i.e. commas instead of dots in float inspector fields) with Experimental .NET 4.6
Setting the Project to use the new Experimental .NET 4.6 support apparently results in the Editor using the OS's Locale for formatting. In case of a non-English Locale this results in a mixed English/non-English Editor experience, specifically noticeable when commas are used for decimal separation.
Steps to reproduce:
1. [Change Locale setting to non-English]
a) Open Start menu and type Region
b) In an opened window select Formats tab
c) Select any non-English format, that uses commas instead of dots for decimal separation (for example, German (Germany))
d) Apply, close the window
2. Open attached project "Locale bug.zip"
3. Open scene "test" and select "RandomObject" from Hierarchy
4. Take a look at Component "Number Test"
Expected behavior: for float number "Random float" dots are used for decimal separation.
Actual behavior: for float number "Random float" commas are used for decimal separation.
Reproduced with: 2017.2.0b2, 2017.1.0f3.
Not reproduced with: 5.6 (no Experimental .NET 4.6 feature).
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- Shader Graph and the Visual Effects Graph scroll unreasonably fast on OSX
- [Android 4.4] Player crashes at splash screen when building with Frame Timing Stats enabled in the Player Settings
- VisualElement’s auto width is incorrect when the element’s parent has a set width
- Black and white flickering when using two Full Screen Pass Renderer Features
- [Audio] Microphone API latency and audio distortions appear after recording
Jul 12, 2019 17:22
Actually nevermind, i take it back. There was a custom element code i specifically forgotten about...
Jul 12, 2019 17:17
Broken in 2019.1 for IMGUI specifically
Jun 02, 2019 05:51
Still broken in 2018.4.0f1 windows standalone runtime.
My app has an editor and Input Fields with decimal places are broken using float.parse in Germany and most likely other locales that use comma instead of decimal.
Will this be back ported from 2019?
Apr 14, 2019 13:50
Unity 2018.3.12f1: it's still there and it makes impossibile to build for Android specifying a non-integer "Up to:" value for max aspect ratio
Mar 20, 2019 14:55
Why the hell this is still not fixed in the Unity 2018.3?
Feb 16, 2019 07:04
Still there in 2018.3.0f2
Jan 21, 2019 16:28
Also found in 2018.2.20f1 and 2018.3.0f1
In case you have troubles with parsing floats with commas, a work around is forcing your float into 'Invariant' which is English formatting (dot):
float number = float.Parse("5,0", CultureInfo.InvariantCulture.NumberFormat);
Dec 14, 2018 09:32
Dec 10, 2018 11:27
Still not fixed on 2018.3.0b12 in location Turkey shows Comma
And it's become big mess.
Dec 09, 2018 10:38
А really annoying issue also breaks hotkeys for Russian locale, so I can't save or copy/paste anything with hotkeys in the editor when Russian locale is active. After switching to English, the editor needs some time (and some random actions, I can't determine what actions exactly) to make the hotkeys work.