The field texture_handles in TextureAtlas changed visibility making the struct non instantiable from Game Code #8633
Labels
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
P-Regression
Functionality that used to work but no longer does. Add a test for this!
Bevy version
0.10.0
I have a custom Texture Packer for sprite animation in 3d space (so not using the sprite crate or 2d rendering). It heavily uses the struct TextureAtlas.
Sadly, 2 months ago, the change #7858 changed the visibility of one of the field (texture_handles) from pub to pub(crate).
Therefor I cannot instantiate this struct from my program anymore. I know there is the TextureAtlasBuilder (maybe it would solve my use case) but it is a bit of shame to not be able to access this class directly just for no apparent reason (and because of a side effect of a doc change).
Can we switch it back to pub?
The text was updated successfully, but these errors were encountered: