//! Example usage of the `https` asset source to load assets from the web.1//!2//! Run with the feature `https`, and optionally `web_asset_cache`3//! for a simple caching mechanism that never invalidates.4//!5use bevy::{asset::io::web::WebAssetPlugin, prelude::*};67fn main() {8App::new()9.add_plugins(DefaultPlugins.set(WebAssetPlugin {10silence_startup_warning: true,11}))12.add_systems(Startup, setup)13.run();14}1516fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {17commands.spawn(Camera2d);18let url = "https://raw.githubusercontent.com/bevyengine/bevy/refs/heads/main/assets/branding/bevy_bird_dark.png";19// Simply use a url where you would normally use an asset folder relative path20commands.spawn(Sprite::from_image(asset_server.load(url)));21}222324