Search Issue Tracker

Fixed in 2020.1.X

Votes

0

Found in

2019.3.0a1

2019.3.0b2

2020.1.0a1

Issue ID

1188538

Regression

Yes

UIElements Debugger throws NullReferenceException after removing background-image texture

UI Toolkit

-

How to reproduce:
1. Create a new project
2. Open UIElements Debugger window (Window->Analysis->UI Elements Debugger)
3. In UIElements Debugger window select any panel from Select a panel dropdown menu
4. Select any element from the opened panels element list
5. In right section click on Show all button
6. Set texture for backgroundImage to anything except "none"
7. Set texture for backgroundImage to none

Expected result: No errors thrown, the texture is set to none
Actual result: NullReferenceException is thrown, the texture isn't removed

Reproducible with: 2019.3.0b6, 2020.1.0a7
Not reproducible with: 2017.4.32f1 (UI Elements debugger not present), 2018.4.10f1, 2019.2.7f2 (different type texture selection button)

Notes: This behavior also reproducible with unity-font

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.