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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
This is a duplicate of issue #1374418