Search Issue Tracker




Found in




Issue ID




'Retrieving array element that was out of bounds' error is thrown on deleting a Reorderable List middle element via 'Delete' key

Inspector Framework


How to reproduce:
1. Open user-submitted project (
2. Open the SampleScene
3. Select Array GameObject
4. Delete Element 1 from the list of integers by selecting it and pressing the 'Delete' key
5. See the Console window

Expected result: no errors are thrown
Actual result: 'Retrieving array element that was out of bounds' error is thrown

Reproducible with: 2020.2.0a13, 2020.3.7f1, 2021.1.0a1, 2021.1.0a7
Not reproducible with: 2018.4.33f1, 2019.4.25f1, 2020.2.0a12, 2021.1.0a8, 2021.1.5f1, 2021.2.0a1, 2021.2.0a15

  1. Resolution Note:

    Fixed in 2021.1.0a8

Comments (2)

  1. chadfranklin47

    Aug 30, 2022 18:21

    I am getting this error on Unity 2021.3.8 LTS with UnityEditorInternal.ReorderableList. Would be nice to get a fix there also.

  2. Garfield583

    May 07, 2022 09:03

    I having the same issuses with the TerrainTool from Unity-Build-In packages, I using Unity Version 2021.3.1f1and my solution is:
    Add the following two lines in the method from the FilterStackView class found in TerrainTool's FilterStackView.cs:
    private Filter GetFilterAtIndex(int index)
    // Add these next two lines in this Methods
    if (index >= m_FiltersProperty.arraySize)
    return null;

    return m_FiltersProperty.GetArrayElementAtIndex(index).objectReferenceValue as Filter;

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.