mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
Remove unnecessary use
from examples (#5583)
# Objective `bevy::render::texture::ImageSettings` was added to prelude in #5566, so these `use` statements are unnecessary and the examples can be made a bit more concise. ## Solution Remove `use bevy::render::texture::ImageSettings`
This commit is contained in:
parent
115211161b
commit
c27cc59e0d
3 changed files with 3 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
//! Renders an animated sprite by loading all animation frames from a single image (a sprite sheet)
|
||||
//! into a texture atlas, and changing the displayed image periodically.
|
||||
|
||||
use bevy::{prelude::*, render::texture::ImageSettings};
|
||||
use bevy::prelude::*;
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//! In this example we generate a new texture atlas (sprite sheet) from a folder containing
|
||||
//! individual sprites.
|
||||
|
||||
use bevy::{asset::LoadState, prelude::*, render::texture::ImageSettings};
|
||||
use bevy::{asset::LoadState, prelude::*};
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
|
|
|
@ -3,10 +3,7 @@
|
|||
|
||||
use bevy::{
|
||||
prelude::*,
|
||||
render::{
|
||||
render_resource::{Extent3d, TextureDimension, TextureFormat},
|
||||
texture::ImageSettings,
|
||||
},
|
||||
render::render_resource::{Extent3d, TextureDimension, TextureFormat},
|
||||
};
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Reference in a new issue