Search Issue Tracker
Duplicate
Votes
0
Found in
2019.3
2020.1.0b5
2020.2
Issue ID
1236260
Regression
No
After reloading a scene or restarting Unity, Empty classes using the [SerializeReference] attribute are null in instances
How to reproduce:
1. Open the attached BugSR.zip project
2. Create a new GameObject in the Hierarchy
3. Add "MyBehaviour" Component in the Inspector window and click on the button "Print Animal Sounds"
Expected: Inspect the Console window the Cat sound is NOT null
4. Save the Scene, close and reopen the project
5. Select your created GameObject and press "Print Animal Sounds" button
Actual: Inspect the Console window, the Cat sound is null
Reproducible with: 2019.3, 2020.2
Note:
- Could not test with 2018.4 because of the thrown errors
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
- 2D Renderer Breaks When Animating Material Property with MaterialPropertyBlock
- PlayModeStateChange.ExitingPlayMode is not logged when Play Mode is exited due to recompilation
- Crash on `anonymous namespace'::PrepareTreesAndWriteWindParamsJobData::Execute when entering Play Mode on a specific project
- Errors "InvalidOperationException: Trying to use a texture (_InternalGradingLut)..." and “Render Graph Execution error” shown and Scene turns black when 16 or more Render Objects are used
- GameObjects in the Game View are rendered differently than in the Scene View when the Rendering Path is set to "Deferred" and Screen Space Shadows Renderer Feature is added
This is a duplicate of issue #1183547