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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Add comment