Expand description

Bevy Embedded Assets

MIT/Apache 2.0 Realease Doc Crate Bevy Tracking CI

Embed your asset folder inside your binary for easier releases.

use bevy::prelude::*;
use bevy_embedded_assets::EmbeddedAssetPlugin;

fn main() {
    App::new().add_plugins(
        DefaultPlugins
            .build()
            .add_before::<bevy::asset::AssetPlugin, _>(EmbeddedAssetPlugin),
    );
}

Bevy Compatibility

Bevybevy_embedded_assets
mainmain
0.90.6
0.80.4
0.70.3
0.60.2
0.50.1

Structs

An HashMap associating file paths to their content, that can be used as an AssetIo
Bevy plugin to add to your application that will insert a custom [AssetServer] embedding your assets instead of the default added by the AssetPlugin. If you are using the [DefaultPlugins] group from Bevy, it can be added this way:

Functions

Generated function that will add all assets to the EmbeddedAssetIo.