Search Issue Tracker

Fixed in 2020.1.X

Fixed in 2019.3.X

Votes

4

Found in

2019.3.0f2

2019.3.0f6

2020.1.0a15

Issue ID

1215642

Regression

Yes

Errors occur in the Play mode when there is an empty collection of a type containing a Serialized Reference object

Serialization

-

How to reproduce:
1. Open the attached project "case_1215642-SerializeReference"
2. Open the Scene "SampleScene"
3. Press the Play button
4. Observe the results in the Console window

Expected results: there are no errors in the Console window
Actual results: errors occur in the Console window such as "A scripted class has a different serialization layout when loading." and "A scripted object (probably Game.TestScript?) has a different serialization layout when loading."

Reproducible with: 2019.3.0f2, 2019.3.0f6, 2020.1.0a15, 2020.1.0a22
Not reproducible with: 2019.3.0f1, 2020.1.0a14

Could not test with: 2017.4, 2018.4, 2019.2, 2019.3.0a12 because " 'SerializeReference' is inaccessible due to its protection level

The issue occurs if you have an empty collection of a type containing an array of with an element type containing itself a Serialized Reference.

  1. Response avatar

    Resolution Note (fix version 2020.1):

    Fixed in 2020.2.0a4

  2. Response avatar

    Resolution Note (fix version 2020.1):

    Fixed in 2020.1.0b5

  3. Response avatar

    Resolution Note (fix version 2019.3):

    Fixed in 2019.3.8f1

Comments (1)

  1. 36c65e3934745df83910152c6a077e4a?d=mm

    shubhamswaraj2021

    Aug 18, 2020 11:48

    good one <a href="https://www.lyricsauto.com">lyricsauto</a>

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.