Search Issue Tracker
By Design
Votes
2
Found in
2018.3.0b7
Issue ID
1094325
Regression
No
Changes to prefab references done by scripts are not marked as overrides and are lost after exiting Play Mode
How to reproduce:
1. Open user-submitted project (PrefabOverridesBug)
2. In the 'Prefabs' folder select the 'ItemWithDot' prefab and drag it into the scene
3. Open the 'TestEditor' custom window (Window > TestEditor)
4. Click the 'Add ring' option
Expected result: the 'Ring' variable on the 'ItemWithDot' GameObject is marked as an override
Actual result: the 'Ring' variable on the 'ItemWithDot' GameObject is not marked as an override and the reference is lost after exiting Play Mode
Reproducible with: 2018.3.0a6, 2018.3.0b8, 2019.1.0a6
Could not test with: 2018.3.0a5
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
- “The serialized array of [SerializeReference] objects is missing entry for Refid -2” error is thrown when saving a prefab with SerializeReference overrides and ShowOverrides is enabled
- Using AudioSource.clip to change from Audio Random Container when Play On Awake is enabled some audio source APIs broken
- OnBeginDrag is not called when the OnEndDrag was called in the same frame
- [URP][Package Samples] Typo on GameObject "MovinigCube"
- EditorUtility.DisplayDialog() does not show the message when the message is too long
Resolution Note (2018.3.X):
By design. Please see documentation: https://docs.unity3d.com/ScriptReference/PrefabUtility.RecordPrefabInstancePropertyModifications.html