#bevy-plugin #assets #bevy #game-assets #embed #embedded #binary

bevy_embedded_assets

A Bevy plugin to embed assets in your game

24 releases

0.12.0 Nov 30, 2024
0.11.0 Jul 4, 2024
0.10.2 Mar 17, 2024
0.9.1 Nov 13, 2023
0.2.1 Jan 16, 2022

#339 in Game dev

Download history 3626/week @ 2024-08-22 2188/week @ 2024-08-29 2973/week @ 2024-09-05 1095/week @ 2024-09-12 946/week @ 2024-09-19 1009/week @ 2024-09-26 976/week @ 2024-10-03 1046/week @ 2024-10-10 847/week @ 2024-10-17 858/week @ 2024-10-24 1011/week @ 2024-10-31 762/week @ 2024-11-07 783/week @ 2024-11-14 986/week @ 2024-11-21 1126/week @ 2024-11-28 641/week @ 2024-12-05

3,626 downloads per month
Used in 5 crates

MIT/Apache

29KB
550 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.15 0.12
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

~24–37MB
~629K SLoC