bevy_asset

Trait VisitAssetDependencies

source
pub trait VisitAssetDependencies {
    // Required method
    fn visit_dependencies(&self, visit: &mut impl FnMut(UntypedAssetId));
}
Expand description

This trait defines how to visit the dependencies of an asset. For example, a 3D model might require both textures and meshes to be loaded.

Note that this trait is automatically implemented when deriving Asset.

Required Methods§

source

fn visit_dependencies(&self, visit: &mut impl FnMut(UntypedAssetId))

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl VisitAssetDependencies for Option<UntypedHandle>

source§

fn visit_dependencies(&self, visit: &mut impl FnMut(UntypedAssetId))

source§

impl VisitAssetDependencies for ()

source§

fn visit_dependencies(&self, _visit: &mut impl FnMut(UntypedAssetId))

source§

impl VisitAssetDependencies for Vec<UntypedHandle>

source§

fn visit_dependencies(&self, visit: &mut impl FnMut(UntypedAssetId))

source§

impl<A: Asset> VisitAssetDependencies for Option<Handle<A>>

source§

fn visit_dependencies(&self, visit: &mut impl FnMut(UntypedAssetId))

source§

impl<A: Asset> VisitAssetDependencies for Vec<Handle<A>>

source§

fn visit_dependencies(&self, visit: &mut impl FnMut(UntypedAssetId))

Implementors§