Search Issue Tracker
Duplicate
Votes
0
Found in
2020.2.0b3
2020.3
2021.2
2021.2.8f1
2022.1
2022.2
Issue ID
1397522
Regression
Yes
ArgumentOutOfRangeException is thrown for ReorderableList when nesting SerializedProperties
How to reproduce:
1. Open the user's attached project
2. In the Project window, navigate to Assets/Scripts
3. Select the Asset "Recurse Asset Array Error"
4. In the Inspector window, expand one of the "RecurseAsset Array Error-0" fields and attempt to add further nested arrays
Expected result: no errors are thrown
Actual result: error is thrown: "ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection."
Reproducible with: 2020.2.0b3, 2020.3.29f1, 2021.2.12f1, 2022.1.0b8, 2022.2.0a5
Not reproducible with: 2019.4.36f1, 2020.2.0b2
Notes:
1. In 2020.2, the error is thrown but nested arrays can be added further, while in later versions the error breaks the Inspector and nested arrays cannot be added
2. Related errors are thrown in some versions: "InvalidOperationException: The operation is not possible when moved past all properties (Next returned false)", "ArgumentNullException: Value cannot be null.", "NullReferenceException: SerializedObject of SerializedProperty has been Disposed."
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
- There is no “Overwrite Preset?” popup when saving a Customizable Toolbar preset with a name that already exists
- Customizable Toolbar preset does not switch to the Unity Default Preset when Reverting All Saved Presets or deleting the active Preset
- New Hierarchy visibility and pickability icon behavior differs from documentation
- [Usability] Selected node gets unselected when undoing changes in the Graph Inspector Node Settings tab
- Search Default option for Column Format does not reset the column's format
This is a duplicate of issue #1374418