Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug [UI Builder] Cannot set decimal values

Discussion in 'UI Toolkit' started by Midiphony-panda, Nov 30, 2021.

  1. Midiphony-panda

    Midiphony-panda

    Joined:
    Feb 10, 2020
    Posts:
    242
    On multiple workstations, it's impossible to set decimal values in UI Builder.

    This forum post suggests this should be possible : https://forum.unity.com/threads/a19-transform-rotation-question.1121248/#post-7219354

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


    EnteringNewDecimalValue.gif

    ______________________

    I submitted a bug (case 1384672).
    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.
     
    Last edited: Dec 1, 2021
  2. Midiphony-panda

    Midiphony-panda

    Joined:
    Feb 10, 2020
    Posts:
    242
  3. Midiphony-panda

    Midiphony-panda

    Joined:
    Feb 10, 2020
    Posts:
    242
    Unfixed in Unity 2021.2.7 :

    BuilderBugComma.gif
     
  4. stevenmare

    stevenmare

    Joined:
    Jul 20, 2018
    Posts:
    76
    Yeah, I have the same issue. Using 2021.2.7f1
     
    Midiphony-panda likes this.
  5. axeldubillet

    axeldubillet

    Unity Technologies

    Joined:
    Nov 19, 2020
    Posts:
    13
    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.
     
    Midiphony-panda likes this.