Search Issue Tracker
By Design
Votes
0
Found in
5.5.0f3
Issue ID
861133
Regression
No
Private variables get serialized when ExecuteInEditMode is set
Steps to reproduce:
1. Open the "test" scene in project
2. Notice the printed logs in console ("testBool is false" and "testInt is 0")
3. Write a comment in SerializationTest.cs script (to force it to recompile)
4. Check the console window again
Expected: debug log prints out the same values ("testBool is false" and "testInt is 0") once again since the script has been recompiled
Actual: debug log prints out "testBool is true" and "testInt is 1"
Reproduced on: 5.4.4f1, 5.5.0p3, 5.6.0b2
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Assets in the Project Window are incorrectly sorted when different Asset types have the same name
- [Android] The Player crashes at "isInMultiWindowMode" when using lifecycle methods
- [Linux] Editor can't find Audio Spatializer when using PS5AudioSpatializer plugin
- [VFX] Custom HLSL with 'int' parameter, without the 'in/out/inout' access modifier is not supported
- [Windows] Lens Flare doesn't work in the Lens Flare Showroom URP Sample Scene
Add comment