Search Issue Tracker

Active

Votes

0

Found in

2021.3.36f1

2022.3.21f1

2023.2.13f1

6000.0.0b11

Issue ID

UUM-68501

Regression

No

The DrawDefaultInspector() function for a class inherited from Button draws excessive unnecessary fields in the Inspector window

--

-

Steps to reproduce:
1. Open the user-attached project
2. Open the “SampleScene”
3. Open the “ScenarioViewInspector.cs” script inside Assets > Scripts > Editor and comment out “DrawDefaultInspector”
4. Compile and Observe the Inspector window for the “Test” GameObject
5. In the same “ScenarioView.cs” script comment out “base.OnInspectorGUI” and uncomment “DrawDefaultInspector”
6. Compile and Observe the Inspector window again, compare

Expected result: The Inspector window should be drawn the same as with “base.OnInspecorGUI”
Actual result: The inspector window is drawn with many excessive fields

Reproducible with: 2021.3.36f1, 2022.3.21f1, 2023.2.13f1, 6000.0.b11

Reproducible on: Windows 10 (by reporter), Windows 11
Not reproducible on: No other environment tested

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.