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
- [Android] Text input field doesn't disappear when pressing "Enter" on the keyboard connected to a device and HideMobileInput is disabled
- WebGL Player flickers and logs warnings when viewport is resized and "Linear" Color Space is used
- Rigidbody recalculates its center of mass when moving its child Trigger Collider
- Sprites with different indexes than indicated in Text field of Label Inspector are being rendered
- VFX rendering a sphere when using a custom mesh
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