Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
Issue ID
1159768
Regression
No
Value of a variable in the scene is reset to the original prefab value on entering Play mode when it was set using CustomEditor
How to reproduce:
1. Open attached project "Case_1159768_repro.zip"
2. Select "OBJE" GameObject in the Hierarchy
3. Click "SetA" button in Platforms script in the Inspector
4. Enter Play Mode
Expected result: Variable "A" value is 10
Actual result: Variable "A" value resets to the value of the prefab - 0
Reproducible with - 2017.4.28f1, 2018.4.1f1, 2019.1.5f1, 2019.2.0b5, 2019.3.0a4
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
- Existing assets' references are lost when pasting in copied sub-assets
- Dragging and dropping a system that contains event context to create nested VFX crashes the editor
- TextMeshPro UV2 custom data not rendering for off-screen text with RectMask2D in Unity 6
- Text overlap and is unreadable in Inspector > Terrain Paint Texture after creating new Terrain Layer
- Event "XRInputSubsystem.trackingOriginUpdated" triggers twice when recentering the view
Resolution Note (2019.3.X):
Low priority defect. Unlikely to be fixed for the moment.