//! Example usage of the `https` asset source to load assets from the web. //! //! Run with the feature `https`, and optionally `http_source_cache` //! for a simple caching mechanism that never invalidates. //! use bevy::prelude::*; fn main() { App::new() .add_plugins(DefaultPlugins) .add_systems(Startup, setup) .run(); } fn setup(mut commands: Commands, asset_server: Res) { commands.spawn(Camera2d); let url = "https://raw.githubusercontent.com/bevyengine/bevy/refs/heads/main/assets/branding/bevy_bird_dark.png"; // Simply use a url where you would normally use an asset folder relative path commands.spawn(Sprite::from_image(asset_server.load(url))); }