This commit is contained in:
shishanyue 2025-06-21 15:45:38 +08:00
parent 484d5c848d
commit 5b6ac36b50
2 changed files with 6 additions and 3 deletions

View File

@ -1619,7 +1619,7 @@ mod tests {
.register_asset_loader(CoolTextLoader);
let asset_server = app.world().resource::<AssetServer>().clone();
let handle: Handle<LoadedBatch> =
asset_server.load_batch(LoadBatchRequest::new(vec!["text/*","b.cool.ron"]));
asset_server.load_batch(LoadBatchRequest::new(vec!["text/*", "b.cool.ron"]));
gate_opener.open(a_path);
gate_opener.open(b_path);
gate_opener.open(c_path);

View File

@ -7,8 +7,11 @@
//! Only one padded and one unpadded texture atlas are rendered to the screen.
//! An upscaled sprite from each of the four atlases are rendered to the screen.
use bevy::{image::ImageSampler, prelude::*};
use bevy_asset::{LoadBatchRequest, LoadedBatch};
use bevy::{
asset::{LoadBatchRequest, LoadedBatch},
image::ImageSampler,
prelude::*,
};
fn main() {
App::new()