Search Issue Tracker

Fixed in 2020.2.X

Fixed in 2019.4.X, 2020.1.X

Votes

1

Found in

2019.4

2019.4.0f1

2020.2

Issue ID

1258959

Regression

No

GetStyleLength sets StyleLength value unit from Percent to Pixel

UI Toolkit

-

Reproduction steps:
1. Open attached project "LengthUnit.zip" and scene "SampleScene"
2. Enter Play Mode
3. Observe Console window

Expected result: VisualElement's property's value's unit is "Percent"
Actual result: VisualElement's property's value's unit is "Pixel"

Reproducible with: 2019.4.2f1, 2020.1.0b14, 2020.2.0a16
Could not test with: 2018.4.24f1 (UIElements namespace does not exist)

  1. Resolution Note (fix version 2020.2):

    Fixed in 2020.2.0a19

  2. Resolution Note (fix version 2020.1):

    Fixed in 2020.1.0f1

  3. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.5f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.