bevy
bevy copied to clipboard
9-Slices don't update when using RenderAssetUsages::RENDER_WORLD
Bevy version
22305acf660486554fe6276e580e65a910b9e2df
What you did
Run sprite_tile example, change texture asset usage to RENDER_WORLD.
SpriteBundle {
texture: asset_server.load_with_settings("branding/icon.png", |settings: &mut ImageLoaderSettings| {
settings.asset_usage = RenderAssetUsages::RENDER_WORLD
}),
..default()
}
What went wrong
Example animation never updates
Additional information
Slices are computed in main world and it's not documented anywhere that it requires the image in main world. I think it's fair to say that this should be done in render world.