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

bevy_embedded_assets

A Bevy plugin to embed assets in your game

22 unstable releases (9 breaking)

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

#261 in Game dev

Download history 1372/week @ 2024-07-14 1560/week @ 2024-07-21 2995/week @ 2024-07-28 1939/week @ 2024-08-04 2103/week @ 2024-08-11 2540/week @ 2024-08-18 3345/week @ 2024-08-25 2653/week @ 2024-09-01 2085/week @ 2024-09-08 844/week @ 2024-09-15 1134/week @ 2024-09-22 914/week @ 2024-09-29 1071/week @ 2024-10-06 1012/week @ 2024-10-13 811/week @ 2024-10-20 682/week @ 2024-10-27

3,690 downloads per month
Used in 5 crates

MIT/Apache

28KB
523 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–58MB
~1M SLoC