[UI Builder] Cannot set decimal values

On multiple workstations, it’s impossible to set decimal values in UI Builder.

This forum post suggests this should be possible : a19 Transform rotation question

This is what happens on the machines at work :
7697944--963679--EnteringDecimalValue.gif

7697944--963682--EnteringNewDecimalValue.gif


I submitted a bug (case 1384672).
Repro Steps

1a. Open Assets/UI/UIPage.uxml
OR
1b. Open UI Builder and add a new VisualElement to the hierarchy.
2. Select the VisualElement in the hierarchy
3. In the UI Builder Inspector, set a decimal value on the Transform>Rotate field

Expected result :
When entering for example “1.2” or “1,2”, the decimal value is valid and saved.

Actual result :
When entering “1.2”, the value isn’t saved and the previous one roll backs.
When entering “1,2”, the value “12” is saved.

Additional note : I am testing from France.

Nevermind, this is currently tracked and fixed in the next Builder package version :

I’ll check if it’s fixed in the next 2021.2 version :slight_smile:

Unfixed in Unity 2021.2.7 :

7785429--982692--BuilderBugComma.gif

Yeah, I have the same issue. Using 2021.2.7f1

1 Like

hi. it is indeed a bug and it happens if you are using a locale with comma as the decimal separator (e.g. fr-FR).
the fix is already available in 2022.1 and will be part of the next 2021.2 released version.

1 Like