Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
Built-in
Issue ID
1403454
Regression
No
[UI Builder] Property value type "%" changes to "px" when restarting the Editor if the value was 0
How to reproduce:
1. Open the attached "1403454_Repro.zip" project
2. Open the UI Builder by double-clicking "UIDoc" found in the Assets folder
3. In the UI Builder Hierarchy select "Button"
4. In the UI Builder Inspector change Position's properties to use "%" (make sure values are 0)
5. Save the UI Builder (in the Viewport press File->Save)
6. Close and reopen the Editor
7. Open the UI Builder and inspect the Position properties type
Expected results: Properties type is "%"
Actual results: Properties types changed to "px"
Reproducible with: 1.0.0-preview.18 (2020.3.33f1), Built-in (2021.2.19f1, 2021.3.1f1, 2022.1.0b16, 2022.2.0a10)
Could not test with: 2019.4.33f1
Note:
- This happens with any Property in UI Builder that can be set as "%" and "px"
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note:
This is not an issue per se. There is no unit type associated to a dimension property when its value is 0 (no override from default). So unit, even if set, will reset the next time the asset is loaded.