Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
s-puig opened this issue May 10, 2024 · 0 comments
Open

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

s-puig opened this issue May 10, 2024 · 0 comments
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior

Comments

@s-puig
Copy link
Contributor

s-puig commented May 10, 2024

Bevy version

22305ac

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 s-puig added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels May 10, 2024
@james7132 james7132 added A-Rendering Drawing game state to the screen and removed S-Needs-Triage This issue needs to be labelled labels May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

No branches or pull requests

2 participants