mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-11-23 04:10:53 +00:00
14 lines
331 B
Rust
14 lines
331 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<Scene>,
|
||
|
|
||
|
#[asset(key = "models", collection(typed, mapped))]
|
||
|
pub models: HashMap<String, Handle<Gltf>>,
|
||
|
}
|