Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X
Votes
0
Found in
2021.3.44f1
2022.3.48f1
6000.0.21f1
Issue ID
UUM-82661
Regression
No
Serialization layout error occurs when loading and unloading AssetBundles in a specific sequence
How to reproduce:
1. Open the attached “IN-84251“ project
2. Open the “SampleScene“
3. Enter Play Mode
4. Observe the console window
Expect: "Content: True" is logged twice
Actual: An error, “A scripted object (script unknown or not yet loaded) has a different serialization layout when loading,” is shown, and the second log displays “Content: False”
Reproducible with: 2021.3.44f1, 2022.3.48f1, 6000.0.21f1
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Notes:
The conditions required for this bug to occur are:
Step 1: Load the AssetBundle, load its dependencies, instantiate the prefab, and destroy it
Step 2: Call Resources.UnloadUnusedAssets() twice
Step 3: Unload one of the dependencies by calling AssetBundle.Unload(false) for ScriptableObjectA
Step 4: Call Resources.UnloadUnusedAssets() again.
Step 5: Reload the previously unloaded AssetBundle, instantiate the prefab from Step 1 again
The dependency structure that must be followed is:
Prefab -> ScriptableObjectA -> ScriptableObjectB -> Any Asset (which will be lost).
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Animation Clip with Legacy enabled does not play when Time.timeScale is set to 0 despite Update mode set to "Unscaled time"
- Rename is enabled on subfolder empty space - "Can't rename to empty name" warning
- SamplerState Property Missing Anisotropic Filtering
- Visual glitches when using Handles API
- The RGBA color values are inconsistent when comparing two identical colors set in the Inspector
Add comment