Search Issue Tracker

By Design

Votes

4

Found in

2020.2.0b13

2020.3

2020.3.0f1

2021.1

2021.2

Issue ID

1328606

Regression

Yes

EditorGUILayout.PropertyField does not open Arrays that are of different level

IMGUI

-

How to reproduce:
1. Open the user's attached "BugPropertyField.zip" project
2. In the Project window go to Assets -> Scenes -> Resources -> Test Array In Array
3. Go to Window -> TestWindowBug
4. In the Inspector in the section "Array In Array" press the plus button
5. Try to expand the newly created Array element in the TestWindowBug window

Expected results: You can expand the Array element
Actual results: The Array element doesn't expand

Reproducible with: 2020.2.0b13, 2020.3.4f1, 2021.1.4f1, 2021.2.0a13
Not reproducible with: 2019.4.23f1, 2020.2.0b12
Could not test with: 2018.4.34f1 (Creating custom editor windows feature not supported)

Note:
-The behavior in step 5 is one-way. You can expand and close the Array element in the Inspector, but you can't do so in the TestWindowBug window

  1. Resolution Note (2021.2.X):

    This issue is not a reorderable list bug. It is caused by recreating SerializedObject on every OnGUI call in customer's project TestWindowBug.cs script

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.