Search Issue Tracker

By Design

Votes

5

Found in

2019.2.0b10

2019.2.0f1

2019.3.0a1

2020.1.0a1

Issue ID

1182179

Regression

No

SpriteAtlas doesn't load from Asset Bundle when reloading the scene

2D

-

How to reproduce:
1. Open the attached project (case_1182179-Project.zip)
2. Open the scene labeled "AssetBundleLoadingTest"
3. Enter the Play mode
4. Press the "Load" button in Game View
5. Press the "Unload" button
6. Press the "Load" button again

Expected result: The sprites are rendered.
Actual result: The sprites are not rendered, they show up as white blocks.

Reproduced in: 2019.2.8f1, 2019.3.0b6, 2020.1.0a7.

Couldn't test with versions up to 2019.2.0b10. (UI elements are not compatible and Sprites keep disappearing)

Note: There are no problems loading the Scene for the first time

  1. Resolution Note (2019.2.X):

    SpriteAtlas is resolved only once during the load. For more dynamic behavior, please use the GetSprite API :
    https://docs.unity3d.com/2020.1/Documentation/ScriptReference/U2D.SpriteAtlas.GetSprite.html

Comments (5)

  1. james_wong

    Dec 22, 2020 03:51

    Looks like Unity will not fix SpriteAtlas bug in a long time.

    So, there is only one suggestion for SpriteAtlas: DONOT use sprite atlas, or your game will crash due to ui image memory issues.

  2. as5405as

    Jul 24, 2020 03:49

    It's present in 2019.4.5f1 as wel,it can not trigger atlasRequested when sceen reload

  3. belowthegam

    Apr 28, 2020 05:12

    It's present in 2019.3.1f1 as well. How was the workaround you used for this problem? I need to solve this as soon as possible.

  4. michael_covert

    Apr 23, 2020 18:49

    If this is by design, I'm confused as to the intended workaround. I don't want to keep the asset bundle loaded forever, but after unloading the asset bundle, the SpriteAtlasManager.atlasRequested callback is never raised again, so I can't re-register the atlas when I later decide to reload it.

  5. Syganek

    Dec 03, 2019 23:12

    It's present in 2017.4f34 as well.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.