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§
sourcefn init_collection<A: AssetCollection>(&mut self) -> &mut Self
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.