Search Issue Tracker
Not Reproducible
Votes
0
Found in
2017.4.0f1
2018.3.0f2
Issue ID
1110334
Regression
No
Getting errors using Resources.UnloadUnusedAssets when loading assets asynchronously
To reproduce:
1. Open attached project "UnloadUnusedBugReport.zip"
2. Open "LoadAssetBugReport.unity" scene
3. Enter Play mode
Expected result: Unused Assets are unloaded without errors
Actual result: getting an error and a lot of warnings in the console
Error: "A script behaviour (script unknown or not yet loaded) has a different serialization layout when loading. (Read 40 bytes but expected 52 bytes)"
Reproduced on:
2017.4.0f1 2017.4.18f1 2018.3.2f1 2019.1.0a13
Notes:
Commenting out line-59 Resources.UnloadUnusedAssets(); from script LoadAssertBugReport.cs prevents the errors.
Tested on MacOS 10.14
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment