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
- Name of the Material in the Material Hierarchy Popup window is cut off
- Editor freezes on "Reloading Domain" when initiating a Domain Reload in a specific project
- The camera's Gizmos frustum does not display correctly when there is a script containing the OnGUI method
- "InvalidOperationException" and additional errors throw in the Console window when using a custom Composite
- The Visual Effect Graphs Custom HLSL node does not generate errors when the HLSL code used is incorrect
Add comment