Search Issue Tracker
Duplicate
Duplicate in 2021.2.X
Votes
0
Found in
2019.4
2020.3
2021.2
2021.2.2f1
Issue ID
1380372
Regression
No
[UIToolkit] Enum Properties don't work with unassigned values, throw IndexOutOfRangeException
How to reproduce:
1. Open the attached "case_1380372" project
1. Select the "Test" Asset in the Project Browser
2. Observe the Console log
Expected result: No error is thrown, the Asset data is visible in the Inspector
Actual result: "IndexOutOfRangeException: Index was outside the bounds of the array." error is thrown in the Console, the Inspector is empty
Reproducible with: 2019.4.32f1, 2020.3.23f1, 2021.2.3f1
Not reproducible with: 2022.1.0a1, 2022.1.0a15
Workaround: Entering the Inspector Debug Mode will show the "Max Texture Size" field empty. After setting it to any value, the issue disappears
-
Resolution Note (2022.1.X):
Fixed in 2022.1.0a1
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
This is a duplicate of issue #1360996