Search Issue Tracker
Won't Fix
Votes
0
Found in
5.3.3f1
Issue ID
780370
Regression
No
[Prefabs] Unused fields from script are not cleared from YAML data
Repro steps:
1)Open the later-attached TestProject
2)Notice TestPrefab.prefab, it's otherPrefab field and open it in text editor
3)In the text(YAML) file notice two mentions of the otherPrefab: in the MonoBehaviour section and in the Prefab->m_Modifications
4*)Open TestPrefabScript.cs and comment line 6 (the only proper line of code)
5) Save the script, make a change to TestPrefab, and save the scene
6) Open up the TestPrefab.prefab in a text editor again
7) Notice there is still a reference to the otherPrefab in it
Reproduced in: 5.4.0b10; 5.3.3p3; 5.2.4f1
Expected behavior: unused field is cleared from the prefab data and doesn't get involved in AssetBundles
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Toolkit 'background-size' property is not fully animatable
- Moving the Scrollbar via clicking no longer works after the first-click when page size is too small
- Elements in UI Builder Viewport are displayed incorrectly when Editor UI Scaling is set to 125%
- Prefab referencing a script is not shown in the Search window's Project tab when using "Find References In Project"
- Scroll view sensitivity remains unchanged when modifying the "--unity-metrics-single_line-height" value
Add comment