Search Issue Tracker
Won't Fix
Votes
2
Found in
2017.4.0f1
2018.4.0f1
2019.2.0a1
2019.2.9f1
2019.3.0a1
2020.1.0a1
Issue ID
1191638
Regression
No
Prefab referenced Game Object is not removed from the Scene files when the reference field gets deleted
To reproduce:
1. Open attached project ("case_1191638.zip")
2. Open "MB" Script from Assets and comment/delete the public SO field
3. From menu bar select > Commands > Force reserialize all assets
4. Open "Prefab-Scene" Scene file in a text editor
Expected result: MonoBehaviour fields are deleted from the Scene file
Actual result: MonoBehaviour fields are not deleted from the Scene file
Reproducible in: 2017.4.33f1, 2018.4.11f1, 2019.2.10f1, 2019.3.0b7, 2020.1.0a9
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
- Visual Scripting Components are hidden behind a throbber when Multiplayer Play Mode is running with at least one local instance
- Video Player does not throw an error when playing a video with unsupported encoding settings
- Errors indicating that TMP Extras were not Imported logged when opening the Render Pipeline Converter Window while in Play Mode
- IL2CPP Player crash on VisualElement_get_hierarchy when calling VisualElement.Add in the Start() method
- [Cinemachine] Virtual Camera does not update during Blend Cancellation
Resolution Note (2021.1.X):
As mentioned previously it is by design that we keep prefab overrides in the scenes, even if they can't be applied to the prefab instance any more. I have attempted to reproduce the issue where too many dependencies where included but I was only able to reproduce when dependencies are between asset bundles with scenes and other asset bundles as described in case 830614. This issue is not a problem for the Scriptable Build Pipeline, https://docs.unity3d.com/Packages/com.unity.scriptablebuildpipeline@1.14/manual/index.html, and will not be fixed in the older asset bundle system. It is recommended to upgrade to the SBP