Crates.io | bevy_embedded_assets |
lib.rs | bevy_embedded_assets |
version | 0.11.0 |
source | src |
created_at | 2022-01-03 18:39:03.444492 |
updated_at | 2024-07-04 19:26:58.444797 |
description | A Bevy plugin to embed assets in your game |
homepage | https://github.com/vleue/bevy_embedded_assets |
repository | https://github.com/vleue/bevy_embedded_assets |
max_upload_size | |
id | 507251 |
size | 40,756 |
Embed your asset folder inside your binary for easier releases.
use bevy::prelude::*;
use bevy_embedded_assets::EmbeddedAssetPlugin;
fn main() {
App::new().add_plugins((EmbeddedAssetPlugin::default(), DefaultPlugins));
}
EmbeddedAssetPlugin
has three modes:
PluginMode::AutoLoad
will embed the asset folder and make it available through the embedded://
sourcePluginMode::ReplaceDefault
will embed the asset folder and make it available through the default sourcePluginMode::ReplaceAndFallback
will embed the asset folder and make it available through the default source. If a fail is not found at runtime, it fallback to the default source for the current platformBevy | bevy_embedded_assets |
---|---|
main | main |
0.14 | 0.11 |
0.13 | 0.10 |
0.12 | 0.9 |
0.11 | 0.8 |
0.10 | 0.7 |
0.9 | 0.6 |
0.8 | 0.4 |
0.7 | 0.3 |
0.6 | 0.2 |
0.5 | 0.1 |