Search Unity

Random atlas instead of sprite

Discussion in 'Asset Bundles' started by kvitkaalexandr, Nov 15, 2021.

  1. kvitkaalexandr

    kvitkaalexandr

    Joined:
    Jul 16, 2017
    Posts:
    1
    I have a issue with the sprite atlas. Reproduced only with assets bundle. Sometimes my sprite doesn't render correctly. Watch my video https://monosnap.com/file/cLoo23PEcnkVXVqJ85EAUcvOE1aNQ7.
    When I change the size or position of the RectTransform, I have a random sprite atlas.
    0:03 - 0:07 - font atlas
    0:08 - 0:11 - correct sprite
    0:16 - our sprite atlas

    I am using a assets bundle without addressables.
    I do not include a sprite atlas in the build.
    I am loading a sprite atlas by subscription on SpriteAtlasManager.atlasRequested
    I have checked the loaded atlas for null. The atlas is not null.
    Checked memory dump, sprite, sprite-atlas object is alive.

    Env:
    Unity 2020.3.15f2
    "com.unity.2d.sprite": "1.0.0"
    "com.unity.modules.assetbundle": "1.0.0"

    Do you have any ideas?