Derive Macro bevy_asset_loader::AssetCollection [−][src]
#[derive(AssetCollection)] { // Attributes available to this derive: #[asset] }
Expand description
Derive macro for AssetCollection
The helper attribute asset
can be used to define the path to the asset file.
ⓘ
#[derive(AssetCollection)] struct MyAudioAssets { #[asset(path = "walking.ogg")] walking: Handle<AudioSource>, #[asset(path = "flying.ogg")] flying: Handle<AudioSource> }