Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2019.4.X, 2020.3.X, 2021.1.X

Duplicate in 2020.2.X

Votes

0

Found in

2019.4

2019.4.3f1

2020.1

2020.2

2021.1

Issue ID

1296506

Regression

No

URP ScriptableObject SerializeField value set to default during the first Import

Asset - Database

-

How to reproduce:
1. Extract the attached project named "URP_SerializeFieldCase.zip" and open the SerializedScripts folder
2. Update the timestamps for each of the files located in this folder (Three scripts in total) - adding an empty newline or space is enough to update them
3. Copy and Paste the contents from SerializedScripts to the Assets folder. 3 Files should get replaced
4. Launch the project
5. Select the UniversalRenderPipelineAsset_Renderer
6. Observe the Inspector window once more

Expected results: UniversalRenderPipelineAsset_Renderer contains the Test field and its value is set to 42
Actual results: UniversalRenderPipelineAsset_Renderer contains the Test field, however, its value is set to -1

Reproducible with: 2019.4.16f1, 2020.1.16f1, 2020.2.0b14, 2021.1.0a9
Could not test with: 2018.4.30f1(Missing script references)

Notes:
1. The Test field is set to 42 after the project is restarted
2. To reproduce the issue again, delete the project files, re-extract URP_SerializeFieldCase.zip and repeat the repro steps

  1. Resolution Note (fix version 2021.2):

    Fixed in - 2021.2.0a7

  2. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.6f1

  3. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.8f1

  4. Resolution Note (fix version 2019.4):

    Fixed in - 2019.4.24f1

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.