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
- Crash on ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
Add comment