We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bevy version
git 7699f8b6db0af6ca62fcd033e05df4f6c71ecb23 (current master at the time of this issue) - #987
Operating system & version
macOS 10.15.7
What you did
Spawn a sprite during game when none has been displayed at start
use bevy::prelude::*; fn main() { App::build() .add_plugins(DefaultPlugins) .add_startup_system(setup) .add_system(display) .run(); } fn setup(commands: &mut Commands) { commands.spawn(Camera2dBundle::default()); } fn display( commands: &mut Commands, mut first: Local<bool>, asset_server: Res<AssetServer>, mut materials: ResMut<Assets<ColorMaterial>>, ) { if !*first { let texture_handle = asset_server.load("branding/icon.png"); info!( "displaying sprite: {:?}", commands .spawn(SpriteBundle { material: materials.add(texture_handle.into()), ..Default::default() }) .current_entity() ); *first = true; } }
What you expected to happen
The sprite should have been displayed
What actually happened
The sprite wasn't displayed
Additional information
It was working with previous bevy commit
The text was updated successfully, but these errors were encountered:
Nice catch. I'll try to fix this asap!
Sorry, something went wrong.
So for some reason texture bindings aren't getting populated for texture assets
Successfully merging a pull request may close this issue.
Bevy version
git 7699f8b6db0af6ca62fcd033e05df4f6c71ecb23 (current master at the time of this issue) - #987
Operating system & version
macOS 10.15.7
What you did
Spawn a sprite during game when none has been displayed at start
What you expected to happen
The sprite should have been displayed
What actually happened
The sprite wasn't displayed
Additional information
It was working with previous bevy commit
The text was updated successfully, but these errors were encountered: