Search Issue Tracker
Fixed in 1.0.0-preview.17
Votes
0
Found in [Package]
1.0.0-preview.14
Issue ID
1320031
Regression
No
UI Toolkit ObjectField doesn't line up
How to reproduce it:
1. Open the attached project "1320031.zip"
2. Load the "TestScene" Scene
3. In the Hierarchy window, select a "ClickMe" GameObject
4. In the Inspector view compare "Repro Script IMGUI (Script)" and "Repro Script UITK (Script)" components' Property Fields
Expected result: UI Toolkit's and IMGUI's displays Property Fields the same way. All Input Fields are aligned
Actual result: UI Toolkit's and IMGUI's displays Property Fields differently. All UI Toolkit's Input Fields are not aligned and they fill all space between Property Field's label and Inspector window's end
Reproducible with: 1.0.0-preview.14 (2020.3.0f1, 2021.1.0b11)
Could not test with: 2018.4.32f1, 2019.4.22f1 (UI Toolkit is not introduced yet), 2021.2.0a8 (due to UI Toolkit's errors)
Comments (1)
-
Toolsmith
Jan 27, 2023 18:06
How come I'm having this issue both on 2021.3.5f1 and 2022.1.10f1? I'm drawing property fields and object fields in custom inspector. Checked with UI Toolkit Debuger: property fields labels have their width set from somwhere while object field labels don't.
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
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
Resolution Note (fix version 1.0.0-preview.17):
Fixed 1320031: UI Toolkit ObjectField doesn't line up:
- Fixed a few USS style settings
- Fixed wrong check for property fields in inspector elements
Fixed in UI Toolkit 1.0.0-preview.17 package