Search Unity

Question Question for Addressable Team: How does directly referencing SpriteAtlas sprites in a Scene work?

Discussion in 'Addressables' started by Kogamma, Apr 6, 2021.

  1. Kogamma

    Kogamma

    Joined:
    Feb 19, 2018
    Posts:
    19
    I've read the docs about how SpriteAtlas dependencies works in Asset Groups.
    Now those docs shows examples of how dependencies work when using AssetReferences and when having prefabs with direct references of the Sprites.

    Now I'm not really sure this is going to be used in our project, but how exactly do direct references to SpriteAtlas sub-sprites in a Scene work? I mean when you have the SpriteAtlas in one Asset Group, the Scene in another Asset Group and that the scene has an Image component directly referencing a Sprite within the SpriteAtlas.

    I've done some testing on this myself and have come up with some results. But I would like to get a definitive answer on how dependencies between SpriteAtlas sprites and Scenes in AssetGroups actually work.
    Something in the style of the examples in the linked docs.
     
  2. RyanYN

    RyanYN

    Joined:
    Aug 13, 2013
    Posts:
    20
    here's the Sample you wanted