Steps to reproduce:
- Open the attached “IN-151939” project
- In the Hierarchy window, select “Test (1)“ and then “Test (2)” GameObjects in that order
- In the Menu bar, select "- Bug Test -" -> "Get minArraySize for selected”
- Observe the output in the Console window
Actual result: SerializedProperty.minArraySize returns 2 instead of the minimum array size (that is 1)
Expected result: SerializedProperty.minArraySize returns 1 (the correct minimum array size)
Reproducible with: 6000.0.0f1, 6000.0.83f1, 6000.3.23f1, 6000.5.11f1, 6000.6.0f1, 6000.7.0a6
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
- To reset the test objects to a state that triggers the bug, execute the menu item
"- Bug test - -> Initialize test objects".