Search Issue Tracker
Duplicate
Votes
2
Found in
2023.2.7f1
2023.3.0b4
6000.0.0b11
Issue ID
UUM-61557
Regression
Yes
ScriptableObjects with inner serialized classes containing arrays throw exceptions when changes are made after saving
How to reproduce:
1. Open the attached “scriptableobject_issue” project
2. Open the “SampleScene”
3. In the Assets window, select the “testSO” asset
4. In the Inspector, add an element to the “Some Objects” list by selecting the “+” button
5. Save the changes without leaving the Inspector window (CTRL+S)
6. Try adding or removing elements from the “Some Objects” list using the “” and “-” buttons (or manually typing a number in the input field)
7. Observe the Console
Expected result: The changes are saved, and no exceptions are thrown in the Console
Actual result: NullReferenceExceptions are thrown when the “” and “-” buttons are clicked. List elements disappear until the Inspector window is refreshed
Reproducible in: 2023.2.0b13, 2023.2.7f1, 2023.3.0a8, 2023.3.0b4
Not reproducible in: 2021.3.34f1, 2022.3.18f1, 2023.2.0b12, 2023.3.0a7
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environments tested
Notes:
- The first affected version’s behavior differs slightly from the latest versions, but the end result is largely the same
- See attachments for the different exceptions thrown
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 Hub redirects to The Unity Roadmap when navigating to “Send Feedback” option
- UI Toolkit throws warning and fails to clear references when fields are not typed as UnityEngine.Object
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
Resolution Note:
This bug was fixed by https://github.cds.internal.unity3d.com/unity/unity/pull/43730
Duplicate of another internal issue: UUM-56957: List data shows wrong values