Search Unity

SpriteAtlases not loading with LoadSceneAsync

Discussion in 'Addressables' started by LlopisDS, Mar 30, 2020.

  1. LlopisDS

    LlopisDS

    Joined:
    Dec 10, 2018
    Posts:
    3
    Hi!

    I have a problem with Addressables and Sprite Atlases. This is what I have:

    • Scene (1) with a SpriteRenderer with a Sprite included in a Sprite Atlas.
    • Scene (2) with the same setup
    • Scene (1) marked as addressable
    • Scene (2) marked as addressable
    • Sprite Atlas not marked as addressable
    • Play mode script set as Use existing
    When I enter play mode in Scene (1) the SpriteRenderer works perfectly but when I load the Scene (2) with:

    Code (CSharp):
    1.  
    2. public AssetReference sceneToLoad;
    3.  
    4. public void LoadScene()
    5. {
    6.     Addressables.LoadSceneAsync(sceneToLoad);
    7. }
    The SpriteRenderer shows nothing, and if I load again the previous scene the SpriteRenderer shows nothing too.

    Can anyone help me? What's wrong with my code?

    Thanks!
     
  2. LlopisDS

    LlopisDS

    Joined:
    Dec 10, 2018
    Posts:
    3
    Update:

    Seems like sprite atlases are working in build but not in editor.
     
  3. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,822
    Which version of Addressables and the editor are you using?
     
  4. LlopisDS

    LlopisDS

    Joined:
    Dec 10, 2018
    Posts:
    3
    Editor: 2019.3.0f6
    Addressables: 1.7.5

    Thanks!
     
  5. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,822
    After speaking with the team, it was advised that you update to 1.8.3 and see if that helps.

    If you're still having this issues, please file a bug report so they can look into it further: https://unity3d.com/unity/qa/bug-reporting