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
- “… is using a shader without GPU deformation support. Switching the renderer over to CPU deformation.” warnings are logged when GPU Skinning is set to GPU
- "Material '...' has _TexelSize / _ST texture properties which are not supported by 2D SRP Batcher...” warning is logged when the Shader is SRB Batcher compatible
- Crash on EnsureUniqueSiblingName when calling GameObjectUtility.EnsureUniqueNameForSibling() with a null argument
- Changes are not applied when selecting Platform settings for Plugins
- Particle System only collides with one Terrain Collider at a time when Collision Type is set to 'World'
Add comment