Skip to content
Discussion options

You must be logged in to vote

I want to change the bundle for TextureAtlases a bit once the renderer rework lands on main. If a Sprite is constructed with a Texture its bundle contains Sprite, Handle<Image> etc. If it's constructed from a TextureAtlas-Texture its bundle contains TextureAtlasSprite, Handle<TextureAtlas> etc. I want to unify this. The Sprite Texture will be represented by:

  • for the case of a Texture: Handle<Image>,
  • for the case of a Texture inside a TextureAtlas: Handle<TextureAtlas> + TextureAtlasEntry,

Both cases will be bundled with Sprite. So no more TextureAtlasSprite and unified functionality.
Then, you can use the custom_size property of Sprite for both cases. Feel free to create an Issue for this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gmoller
Comment options

Answer selected by gmoller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants