I'm using TextureAtlasBuilder
to produce a TextureAtlas
. I'm adding multiple textures to the atlas using the add_texture
method. I'm then using that texture atlas as part of a sprite entity created from a SpriteSheetComponents
bundle.
When changing the sprite's index, the resulting texture is not what I'm expecting. I'm assuming that the textures in the texture atlas reflect the order in which they were added while building it. Is that an incorrect assumption?