mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-11-22 11:50:53 +00:00
c4e83655f3
* chore(bevy_gltf_components): updated code for bevy_main/ v0.12 * refactor(examples): cleanups & tweaks * added compatibility tables
14 lines
330 B
Rust
14 lines
330 B
Rust
use bevy::gltf::Gltf;
|
|
use bevy::prelude::*;
|
|
use bevy::utils::HashMap;
|
|
use bevy_asset_loader::prelude::*;
|
|
|
|
#[derive(AssetCollection, Resource)]
|
|
pub struct GameAssets {
|
|
#[asset(key = "world")]
|
|
pub world: Handle<Gltf>,
|
|
|
|
#[asset(key = "models", collection(typed, mapped))]
|
|
pub models: HashMap<String, Handle<Gltf>>,
|
|
}
|