Search Issue Tracker
Fixed in 2021.3.29f1
Fixed in 2021.3.X, 2022.3.X, 2023.1.X, 2023.2.X, 2023.2.0a16
Votes
0
Found in
2021.2.0a19
2021.3.4f1
2021.3.24f1
2022.1.3f1
2022.2.0a13
2022.2.0a15
2022.3.0f1
2023.1.0b15
2023.2.0a13
Issue ID
UUM-2258
Regression
Yes
Changes to an empty [SerializeReference] class causes data errorswhen selecting a previously created asset
How to reproduce:
1. Open the user attached project (SerializeReferenceBug.zip)
2. In the menu bar go to: Test > Create Empty Meta Asset Object
3. Select the created "Empty Metadata Object" in the Project view
4. In the Inspector observe the empty "metadata" field
5. Open the C# class "EmptyMetadata.cs"
6. Uncomment the code in the class and save the script
7. Wait for recompilation to finish, then select "Empty Metadata Object" asset again
8. Observe the Console
Expected result: the Console is empty
Actual result: there's an error "Cannot access reference object for property path 'metadata'. The reference managed script might have changed."
Reproducible with: 2021.2.0a19, 2021.3.4f1, 2022.1.3f1, 2022.2.0a15
Not reproducible with: 2019.4.39f1, 2020.3.35f1, 2021.2.0a18
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Localization] Google Sheets pull deletes locale Comment metadata when LocaleColumn "Include Comments" is disabled
- UI Toolkit Horizontal scroller resizes and moves left based on the vertical scroller position
- AudioClip.UnloadAudioData() and AudioClip.LoadAudioData() state UnityWebRequest clips as loaded when the clips are not loaded
- [macOS] Gray artifacts appear and flicker on Editor windows when moving the cursor after entering a large Padding value on Element with a Filter applied
- LineRenderer using URP SpriteLitDefault Material becomes invisible when animating its "Material._Renderer Color" property and disabling and reenabling the GameObject
Add comment