Search Issue Tracker

Fixed in 2021.1.X

Fixed in 2019.4.X, 2020.1.X, 2020.2.X

Votes

63

Found in

2019.3

Issue ID

1193322

Regression

No

[SerializeReference] Polymorphic instances are always recreated when applying *any* inspector value change

Serialization

-

1) Add the Script PlayModeBug to a GameObject.

2) Enter play mode

3) Select the GameObject with the script and change the value of the toggle "A Bool".

4) Notice the string property "PropertyValue" has lost its value in the SerializeReference field.

  1. Resolution Note (fix version 2021.1):

    This is now fixed in 2021.1.0a5

  2. Resolution Note (fix version 2020.2):

    This now fixed in 2020.2.0b12

  3. Resolution Note (fix version 2020.1):

    This now fixed in 2020.1.17f1

  4. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.17f1

Comments (12)

  1. oscarAbraham

    Nov 27, 2020 03:47

    I'm trying this in 2020.2.0b12.3574. Instances are still recreated when modifying anything in the inspector and then doing ctrl+z. Is this because of the Unity version I'm trying? I wonder what's the proper protocol when the issue is marked as fixed, but it's not completely solved. If this is already supposed to work in the version I tried, I'll submit a bug report with a project and see what happens.

  2. Silly_Rollo

    Nov 07, 2020 01:05

    Still no 2020.1 fix?

  3. YenMoc

    Oct 08, 2020 02:08

    Please fix this soon, 2020.1.8 has been released and it's still here :((

  4. jynerso

    Jul 29, 2020 17:34

    When will it be backported to 2019.4?

  5. Elringus

    Jul 16, 2020 08:24

    Thanks for confirming the 2019.4 support! Any ETA when it will be ported? It's been "Fix in review for 2019.4" for almost 2 months already.

  6. 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...

  7. Beru

    May 21, 2020 11:04

    Fix it, please!!!!!

  8. MikBo

    May 14, 2020 15:09

    Fix this.

  9. PanthenEye

    May 14, 2020 14:25

    Waiting for the fix.

  10. johnowhetton

    May 13, 2020 21:21

    Please fix this issue, thank you

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.