Search Issue Tracker

Fix In Review for 2020.2

Planned for 2020.1

Votes

31

Found in

2019.3

Issue ID

1193322

Regression

No

[SerializeReference] non-serialized Initialized fields lose their values when entering and during play mode.

Scripting

-

1) Add Script InitBug.cs to a project

2) In the project view, create a new "Initialized Fields Bug" asset.

3) Select the asset and click the cog icon to show the assets context menu, select "Check Values".

4) The console should say that both fields are NOT null.

5) Enter play mode.

6) Select the asset and click the cog icon to show the assets context menu, select "Check Values".

7) The SerializeReference field is now null. This should never happen.

If a value is changed in a script during play mode, all the non-serialized fields will lose their values.

Note: It is indeed Planned for 2019.4!

Comments (7)

  1. E1d5009c5868810cb6f2de0fa9d846cb?d=mm

    Elringus

    May 28, 2020 18:25

    Why it's no longer planned to be fixed in 2019.3/2019.4 and been removed from the known issues list in 2019.3.15 changelog today? I was really hopping it'll be fixed in 2019...

  2. 571d9f886dc5f62742f670013df5f76f?d=mm

    Beru

    May 21, 2020 11:04

    Fix it, please!!!!!

  3. E245e2e58dfdfc3e9a2c2ce9259180bf?d=mm

    MikBo

    May 14, 2020 15:09

    Fix this.

  4. 93c5083c8e848af3167f5f6166416046?d=mm

    PanthenEye

    May 14, 2020 14:25

    Waiting for the fix.

  5. 06ee5e5eb7b786f6b4dcc73cb14f4d14?d=mm

    johnowhetton

    May 13, 2020 21:21

    Please fix this issue, thank you

  6. 033f000d93ff79cfc087cb426af64887?d=mm

    unity_eTGLIsisfOJujQ

    May 13, 2020 18:47

    Please fix!

  7. 125a95aea3e48a515a813989f0879c25?d=mm

    realcosmik

    Mar 26, 2020 20:28

    Still occurring in unity 2019.3.1f1

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.