Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
5.6.0b9
Issue ID
885387
Regression
Yes
[Asset Bundles] Sprite Renderer Sorting Layer is gone when asset is loaded from asset bundle
To reproduce:
1. Open attached project.
2. Execute menu item: "BUG/Build Asset Bundles"
3. Open and play scene: MainMenu.
4. Press button "File Default" to load bundles.
5. Press button "Load Scene"
6 (optional). in hierarchy look for any sprites, check sorting layer
Expected result: A game scene should be loaded where you can walk shoot, with obstacles and falling enemies.
Actual result: A game scene is loaded, but only the background is visible. Other sprites are behind it.
This happens because when sprites are loaded from asset bundles, they lose their Sorting Layer value (it is always "Default" for every sprite). When the scene is played directly, it works perfectly fine, Sorting Layers are correct. Open scene "2D" to see that sprites do have Sorting Layers assigned to them.
OR: it might be that Sorting Layer is dropped when building asset bundles.
Not reproducible: 5.6.0a2
Reproducible: 5.6.0b9
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
vitorpiresa
Jan 13, 2020 12:18
I'm having this issue in 2018.4 please, fix it.
robert_iadanza
Aug 17, 2018 02:23
Is this resolved? Because I'm having the exact same issue in 2017.4