Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions crates/bevy_asset/src/io/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ use tracing::warn;
/// Example usage:
///
/// ```rust
/// # use bevy_app::{App, Startup};
/// # use bevy_ecs::prelude::{Commands, Res};
/// # use bevy_asset::web::{WebAssetPlugin, AssetServer};
/// # use bevy_app::{App, Startup, TaskPoolPlugin};
/// # use bevy_ecs::prelude::{Commands, Component, Res};
/// # use bevy_asset::{Asset, AssetApp, AssetPlugin, AssetServer, Handle, io::web::WebAssetPlugin};
/// # use bevy_reflect::TypePath;
/// # struct DefaultPlugins;
/// # impl DefaultPlugins { fn set(plugin: WebAssetPlugin) -> WebAssetPlugin { plugin } }
/// # use bevy_asset::web::AssetServer;
/// # impl DefaultPlugins { fn set(&self, plugin: WebAssetPlugin) -> WebAssetPlugin { plugin } }
/// # #[derive(Asset, TypePath, Default)]
/// # struct Image;
/// # #[derive(Component)]
Expand All @@ -39,6 +39,8 @@ use tracing::warn;
/// .add_plugins(DefaultPlugins.set(WebAssetPlugin {
/// silence_startup_warning: true,
/// }))
/// # .add_plugins((TaskPoolPlugin::default(), AssetPlugin::default()))
/// # .init_asset::<Image>()
/// # .add_systems(Startup, setup).run();
/// # }
/// // ...
Expand Down