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

Scripting

-

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

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.