Copyright © 2026 Unity Technologies
Steps to reproduce:
1. Create new Unity project using Universal 2D Template
2. In Project window create Rule tile and Advanced Rule Override Tile (Create > 2D > Tiles)
3. Select Advanced Rule Override Tile in Project window
4. In Inspector > Tile > select New Rule Tile
5. Enter in Inspector Debug Mode
6. Change Override Tiling Rules from 0 to 1
7. Exit Debug Mode
8. Observe the Console window
Actual results: “IndexOutOfRangeException: Index was outside the bounds of the array.” Errors are spammed in the Console window
Expected results: No errors spammed in the Console window, the Override Tiling Rules field is read-only/non-editable in Inspector Debug Mode on Advanced Rule Override Tile
Reproducible with versions: 6000.0.80f1, 6000.3.21f1, 6000.5.6f1, 6000.6.0b6, 6000.7.0a3
Tested on (OS): macOS Tahoe 26.5.2 (M1)
IndexOutOfRangeException: Index was outside the bounds of the array. UnityEditor.RuleTileEditor.SpriteOnGUI (UnityEngine.Rect rect, UnityEngine.RuleTile+TilingRuleOutput tilingRule) (at ./Library/PackageCache/com.unity.2d.tilemap.extras@598e8b65eaae/Editor/Tiles/RuleTile/RuleTileEditor.cs:871) UnityEditor.AdvancedRuleOverrideTileEditor.DrawRule (UnityEngine.Rect rect, UnityEngine.RuleTile+TilingRuleOutput rule, System.Boolean isOverride, UnityEngine.RuleTile+TilingRule originalRule, System.Boolean isMissing) (at ./Library/PackageCache/com.unity.2d.tilemap.extras@598e8b65eaae/Editor/Tiles/RuleOverrideTile/AdvancedRuleOverrideTileEditor.cs:193) UnityEditor.AdvancedRuleOverrideTileEditor.<DrawRuleElement>g__DrawRuleInternal|14_1 (UnityEngine.Rect r, UnityEditor.AdvancedRuleOverrideTileEditor+<>c__DisplayClass14_0& ) (at ./Library/PackageCache/com.unity.2d.tilemap.extras@598e8b65eaae/Editor/Tiles/RuleOverrideTile/AdvancedRuleOverrideTileEditor.cs:147) UnityEditor.AdvancedRuleOverrideTileEditor.DrawRuleElement (UnityEngine.Rect rect, System.Int32 index, System.Boolean active, System.Boolean focused) (at ./Library/PackageCache/com.unity.2d.tilemap.extras@598e8b65eaae/Editor/Tiles/RuleOverrideTile/AdvancedRuleOverrideTileEditor.cs:123) UnityEditorInternal.ReorderableList.DoListElements (UnityEngine.Rect listRect, UnityEngine.Rect visibleRect) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/ReorderableList.cs:1005) UnityEditorInternal.ReorderableList.DoLayoutList () (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/ReorderableList.cs:762) UnityEditor.AdvancedRuleOverrideTileEditor.OnInspectorGUI () (at ./Library/PackageCache/com.unity.2d.tilemap.extras@598e8b65eaae/Editor/Tiles/RuleOverrideTile/AdvancedRuleOverrideTileEditor.cs:72) UnityEditor.UIElements.InspectorElement+<>c__DisplayClass88_0.<CreateInspectorElementUsingIMGUI>b__2 () (at /Users/bokken/build/output/unity/unity/Editor/Mono/UIElements/Inspector/InspectorElement.cs:872) UnityEditor.GUIView:ProcessEvent(EntityId, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUIView.cs:82)
Issues you vote on will appear here