bevy_remote_asset

Crates.iobevy_remote_asset
lib.rsbevy_remote_asset
version0.1.1
sourcesrc
created_at2023-08-29 10:17:23.079989
updated_at2023-08-30 02:28:04.677538
descriptionA Bevy plugin to load asset from web
homepage
repositoryhttps://github.com/foxzool/bevy_remote_asset
max_upload_size
id957866
size91,079
ZoOL (foxzool)

documentation

README

bevy_remote_asset

crates.io crates.io Documentation MIT/Apache 2.0

A Bevy plugin to load asset from web. It is based on the ehttp

Example

use bevy::prelude::*;

use bevy_remote_asset::RemoteAssetPlugin;

fn main() {
    App::new()
        .add_plugins(RemoteAssetPlugin)
        .add_plugins(DefaultPlugins)
        .add_systems(Startup, setup)
        .run()
}

fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
    commands.spawn(Camera2dBundle::default());

    commands.spawn(SpriteBundle {
        texture: asset_server
            .load("https://seeklogo.com/images/B/bevy-engine-logo-25F6DD58BF-seeklogo.com.png"),
        ..default()
    });
}

Commit count: 7

cargo fmt