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

Asset Bundles

-

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

Add comment

Log in to post comment