bevy/crates/bevy_gltf/src/lib.rs

14 lines
268 B
Rust
Raw Normal View History

mod loader;
pub use loader::*;
use bevy_app::{AppPlugin, AppBuilder};
use bevy_asset::{AddAsset};
#[derive(Default)]
pub struct GltfPlugin;
2020-04-20 02:29:33 +00:00
impl AppPlugin for GltfPlugin {
fn build(&self, app: &mut AppBuilder) {
app.add_asset_loader(GltfLoader);
}
}