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
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
- UI Builder doesn't update the style sheet when using "Extract inline style" right-click option
This is a duplicate of issue #1374418