Search Issue Tracker
Fixed in 0.10.1-preview
Votes
0
Found in [Package]
0.8.0
Issue ID
1205392
Regression
Yes
[UI Builder] Selecting an item from StyleSheets window throws errors when its display is set to none
How to reproduce:
1. Open the project from the attached file "1205392.zip"
2. From Assets open "bug.uss" file in a text editor
3. Change display: flex to display: none and save the file
4. Return to Unity and Enter the UI Builder window
5. Select the .selector item from StyleSheets window and inspect the console
Expected result: No error is thrown in the console
Actual result: NullReferenceException and "Trying to read value of type Enum while reading a value of type keyword" error is thrown in the console
Reproducible with: UI Builder 0.8.0, 0.10.0(2019.2.20f1, 2019.3.0f6, 2020.1.0a22)
Not reproducible with: UI Builder 0.7.0(2019.2.20f1, 2019.3.0f6, 2020.1.0a22)
Could not test with: 2017.4.36f1(no package manager), 2018.4.17f1, 2019.1.14f1(UI Builder not introduced)
Note: When changing display value to none in the UI Builder Inspector the error is not thrown. When changing display value in the UI Builder Inspector after reproducing this bug, the IndexOutOfRangeException is thrown in the console.
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
- "Rendering Debugger" displays incorrect overdraw count when using "Unlit/Texture" shader
- Scene and Game views break when the Editor window is snapped with the Microsoft PowerToys
- Materials do not transfer texture when the "Shader" parameter is changed from "Unlit/Texture" to "Universal Render Pipeline/Unlit"
- [Linux][Vulkan] Crash when opening searchable dialog
- The "Shader error in 'AE/Leaves': "Undefined punctual shadow filter algorithm"" error appears when build completes on a specific project
Resolution Note (fix version 0.10.1-preview):
Fixed in UI Builder 0.10.1-preview(2019.3.3f1, 2020.1.0a25)