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
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)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Color property '_BaseColor' missing
- Point Light source stops lighting when moved out of camera frustum in Player while having 2 directional lights in scene present, and a fog enabled by script
- Sky does not get rendered when 'CameraRelativeRendering' is disabled
- Dropdown UI elements have their Content misplaced when nested inside a Prefab containing a root object with a Canvas Component
- “'UnityMetaVertexPosition': implicit truncation of vector type" Shader warning when compilating URP ShaderGraph shaders
Resolution Note (fix version 2020.2):
Fixed in 2020.2.0a19
Resolution Note (fix version 2020.1):
Fixed in 2020.1.0f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.5f1