Crate bevy_histrion_packer
source ·Expand description
§Bevy Histrion Packer
A Bevy plugin to pack assets into a single file :boom:
// build.rs
use std::path::Path;
use bevy_histrion_packer::pack_assets_folder;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let source = Path::new("imported_assets/Default");
let destination = Path::new("assets.hpak");
pack_assets_folder(source, destination, false)?;
Ok(())
}
// src/main.rs
use bevy::prelude::*;
use bevy_histrion_packer::HistrionPackerPlugin;
fn main() {
App::new().add_plugins((
HistrionPackerPlugin {
source: "assets.hpak".into(),
mode: bevy_histrion_packer::HistrionPackerMode::ReplaceDefaultProcessed,
},
DefaultPlugins,
));
}
§Bevy Compatibility
bevy | bevy-histrion-packer |
---|---|
0.13 | 0.2 |
0.12 | 0.1 |
§License
Dual-licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
§Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Structs§
- Bevy plugin to add a new [
AssetSource
] which reads from a hpak file.
Enums§
Functions§
- Packs the source folder into a hpak file.