Search Issue Tracker
Won't Fix
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
2
Found in
2020.2.1f1
2021.1
2021.2
Issue ID
1321215
Regression
No
Arrays apply data changes immediately which prevents DelayedEditor from working properly
Reproduction steps:
1. Open the attached project "case_1307386-ArrayInspectorBug.zip"
2. In the Scripts folder, click on "New Foo"
3. In the Inspector window change any element in the Values array, so it becomes an unsorted array
4. Click the Apply button and notice how the array is now sorted
5. Change any element in the Values array, so it becomes an unsorted array
6. Right-click on that element and choose "Duplicate Array Element"
Alternatively:
1. Add [NonReorderable] above public "int[] values = {};" in "Foo.cs"
2. Select the "New Foo" asset again
3. In its Inspector right click any of the arrays -> "Duplicate Array Element"
4. Observe that the Apply/Revert buttons are disabled
Expected result: Apply and Revert buttons are not disabled, and the array is not yet saved
Actual result: Apply and Revert buttons are disabled, the array is saved without Apply() method ever being called and the array is not sorted
Reproducible with: 2021.1.0b8, 2021.2.0a5
Couldn't test with: 2018.4.33f1 (failed to downgrade to a functioning project), 2019.4.23f1, 2020.3.2f1 (because of another issue, clicking on Duplicate or Delete options when right-clicking, does nothing), 2021.1.0b9 - 2021.1.1f1, 2021.2.0a6 - 2021.2.0a10 (because Apply and Revert buttons don't get enable when you change any element)
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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Resolution Note (2021.2.X):
Fixed in 2021.2.0a18
Resolution Note (fix version 2021.1):
Fixed in 2021.1.10f1