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
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
Add comment