Trait bevy::asset::AssetLoader[]

pub trait AssetLoader: 'static + Send + Sync {
    pub fn load(
        &'a self,
        bytes: &'a [u8],
        load_context: &'a mut LoadContext<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'a + Send, Global>>;
pub fn extensions(&self) -> &[&str]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
; }

A loader for an asset source

Required methods

pub fn load(
    &'a self,
    bytes: &'a [u8],
    load_context: &'a mut LoadContext<'_>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'a + Send, Global>>

pub fn extensions(&self) -> &[&str]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]

Loading content...

Implementors

impl AssetLoader for Mp3Loader

impl AssetLoader for GltfLoader

impl AssetLoader for ShaderLoader

impl AssetLoader for HdrTextureLoader

impl AssetLoader for ImageTextureLoader

impl AssetLoader for SceneLoader

impl AssetLoader for FontLoader

Loading content...