Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2020.3.X, 2021.1.X
Votes
0
Found in
2020.3
2020.3.4f1
2021.1
2021.2
Issue ID
1331091
Regression
No
NonReorderable attribute is ignored when the list is in inherited class
How to reproduce:
1. Open the attached project ("1331091.zip")
2. Open "SimpleScripts.cs" in Assets/Editor
3. Notice how there are two fields "Budgets" and "BudgetDetails", one is of the "BudgetSettings" class and the other is of the "BudgetDetails" class
4. Notice how "BudgetSettings" inherits "BudgetDetails" and there is a "SomeList" field with NonReorderable attribute in the "BudgetDetails" class
5. Open "SimpleScripts.asset" in Assets/ScriptableObjects and look at the Inspector window
6. Expand Budgets/Element 0/Some List and set its size to something more than 0
7. Repeat 6th step with Budgets_details
Expected result: The "Some List" List is non-reorderable on both "Budgets" and "BudgetDetails"
Actual result: The "Some List" List is non-reorderable on "BudgetDetails" and reorderable on "Budgets", which means it ignores the NonReorderable attribute
Reproducible with: 2020.3.6f1, 2021.1.5f1, 2021.2.0a15
Couldn't test with: 2018.4.34f1, 2019.4.25f1 (the NonReorderable attribute is not supported)
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
Resolution Note (fix version 2021.2):
Fixed in 2022.1.0a2
Resolution Note (fix version 2021.2):
Fixed in 2021,2,0b6
Resolution Note (fix version 2021.1):
Fixed in 2021.1.17f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.16f1