Trait bevy::asset::AddAsset[]

pub trait AddAsset {
    pub fn add_asset<T>(&mut self) -> &mut Self
    where
        T: Asset
;
pub fn init_asset_loader<T>(&mut self) -> &mut Self
    where
        T: AssetLoader + FromWorld
;
pub fn add_asset_loader<T>(&mut self, loader: T) -> &mut Self
    where
        T: AssetLoader
; }

AppBuilder extension methods for adding new asset types

Required methods

pub fn add_asset<T>(&mut self) -> &mut Self where
    T: Asset

pub fn init_asset_loader<T>(&mut self) -> &mut Self where
    T: AssetLoader + FromWorld

pub fn add_asset_loader<T>(&mut self, loader: T) -> &mut Self where
    T: AssetLoader

Loading content...

Implementors

impl AddAsset for AppBuilder

Loading content...