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
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
Resolution Note (fix version 0.10.1-preview):
Fixed in UI Builder 0.10.1-preview(2019.3.3f1, 2020.1.0a25)