bevy icon indicating copy to clipboard operation
bevy copied to clipboard

9-Slices don't update when using RenderAssetUsages::RENDER_WORLD

Open s-puig opened this issue 9 months ago • 0 comments

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.

s-puig avatar May 10 '24 17:05 s-puig