Search Issue Tracker
Fixed in 2019.3.X
Votes
0
Found in
2018.3.0a1
2019.1.0a1
2019.1.4f1
2019.2.0a1
2019.3.0a1
Issue ID
1162066
Regression
No
[Presets] FormerlySerializedAs Field does not keep the last value after commenting Initial Variable when Script is on Preset
How to reproduce:
1. Open the attached "FormerlySerializedAsTest.zip" Project
2. Set the "Test Float" variable to 100
3. Go to edit "TestScript.cs"
4. Uncomment lines 8, 9 and comment line 7
5. Save the Script and Observe the value in the Editor
Expected Behaviour: The value is saved even though the initial Variable is commented
Actual Behaviour: The value is reset to 0
Reproducible with: 2018.4.3f1, 2019.1.7f1, 2019.2.0b6, 2019.3.0a6
Note: The Behaviour does not reproduce when you do the same steps on the GameObject in the Scene. Could not test with 2017.4 because there were no presets.
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
- Diagnostics does not report Editor exceptions when using CrashReportingSettings.captureEditorExceptions
- No Prompt to restart the Editor appears when Changing Active Input Handling via Project Settings Presets
- Exporting a .csv file includes entries with ExcludeEntryFromExport when the first locale entry is null
- Collections package fails module verification when compiling and adding Burst function pointers to a HashMap inside a Burst compiled method
- Panel.Pick() returns incorrect elements when the target UIDocument's Render Mode is set to World Space
Resolution Note (fix version 2019.3):
Fixed in: 2020.1.0a5