Search Issue Tracker

Duplicate

Votes

0

Found in

2019.3.0a2

2019.3.0f1

2020.1

Issue ID

1203848

Regression

No

ScriptableObject using SerializeReference loses reference to the instance implementing interface after restarting Unity

Asset - Importers

-

How to reproduce:
1. Open attached project ("SerializeReferenceBug.zip")
2. In Project window right-click menu->Create->ScriptableObjects->Bug_ScriptableObject
3. In Project window select created Bug_ScriptableObject asset
4. In Inspector window top-right corner click on the cog icon
5. Click on Create Instance, then on Print
6. Close and Reopen Unity editor
7. In Project window select Bug_ScriptableObject asset
8. Click on Print again

Expected result: Reference is persisted
Actual result: Reference is lost

Reproducible with: 2019.3.0f2, 2020.1.0a16
Not tested with: 2017.4.34f1, 2018.4.14f1, 2019.2.15f1, 2019.3.0a1

Note: before version 2019.3.0a2, SerializeReference was inaccessible due to its protection level. Unable to test in versions earlier than 2019.3.0a1 due to SerializeReference being unavailable.

Add comment

Log in to post comment