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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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