Crate bevy_embedded_assets
source ·Expand description
Bevy Embedded Assets
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
Bevy | bevy_embedded_assets |
---|---|
main | main |
0.9 | 0.6 |
0.8 | 0.4 |
0.7 | 0.3 |
0.6 | 0.2 |
0.5 | 0.1 |
Structs
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
.