19 unstable releases (9 breaking)

new 0.11.0-rc.2 Jun 8, 2024
0.10.2 Mar 17, 2024
0.10.0 Feb 18, 2024
0.9.1 Nov 13, 2023
0.2.1 Jan 16, 2022

#326 in Game dev

Download history 836/week @ 2024-02-15 885/week @ 2024-02-22 907/week @ 2024-02-29 1426/week @ 2024-03-07 1177/week @ 2024-03-14 741/week @ 2024-03-21 1014/week @ 2024-03-28 736/week @ 2024-04-04 858/week @ 2024-04-11 1078/week @ 2024-04-18 703/week @ 2024-04-25 801/week @ 2024-05-02 777/week @ 2024-05-09 881/week @ 2024-05-16 1335/week @ 2024-05-23 847/week @ 2024-05-30

3,965 downloads per month
Used in 4 crates

MIT/Apache

28KB
522 lines

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((EmbeddedAssetPlugin::default(), DefaultPlugins));
}

EmbeddedAssetPlugin has three modes:

  • PluginMode::AutoLoad will embed the asset folder and make it available through the embedded:// source
  • PluginMode::ReplaceDefault will embed the asset folder and make it available through the default source
  • PluginMode::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 platform

Bevy Compatibility

Bevy 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

Dependencies

~23–57MB
~1M SLoC