pub trait AssetCollectionApp {
    // Required method
    fn init_collection<A: AssetCollection>(&mut self) -> &mut Self;
}
Expand description

Extension trait for App enabling initialisation of asset collections

Required Methods§

source

fn init_collection<A: AssetCollection>(&mut self) -> &mut Self

Initialise an AssetCollection

This function does not give any guaranties about the loading status of the asset handles. If you want to use a loading state, you do not need this function! Instead use an LoadingState and add collections to it to be prepared during the loading state.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AssetCollectionApp for App

source§

fn init_collection<Collection>(&mut self) -> &mut Self
where Collection: AssetCollection,

Implementors§