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
- “Readme” Asset is unreadable in the Inspector window when switching Editor Theme to Light
- “NullReferenceException” error thrown when switching Editor Theme to Light if “Unity Version Control” tab is enabled
- A Warning is displayed in the Inspector when a Mesh with any Material is added as a Terrain Detail
- [Android][Vulkan] Memory leak when playing and stopping a video using the Video Player on some devices
- Caret moves by a character when typing "." and any number into 'Grid and Snap' toolbar's input field
Add comment