Search Issue Tracker
By Design
Votes
0
Found in
5.4.1f1
Issue ID
836827
Regression
No
Variables with SerializeField modified values are lost when the scene is played
Steps to reproduce:
1. Open attached project
2. Select Mike object
3. Change the values below "Inherited From PlayerController"
4. Play the scene
5. Notice that the changed values below "Inherited From PlayerController" are lost
Expected result: Values below "Inherited From PlayerController" should not be lost when the scene is played
Note: the bug appears only when the object is assigned as a prefab.
Workaround: Deleting "Mike Controller" component and reapplying the script again solves the problem
Reproduced in: 2017.1.0a4, 5.6.0f2, 5.4.1f1, 5.3.3f1, 5.2.3f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment