Enum amethyst_assets::AssetPrefab[][src]

pub enum AssetPrefab<A, F> where
    A: Asset,
    F: Format<A>, 
{ Handle(Handle<A>), File(String, F, F::Options), }

Convenience PrefabData for loading assets of type A using Format F.

Will add a Handle<A> to the Entity

Type parameters:

Variants

From existing handle

From file, (name, format, format options)

Trait Implementations

impl<'a, A, F> PrefabData<'a> for AssetPrefab<A, F> where
    A: Asset,
    F: Format<A> + Clone,
    F::Options: Clone
[src]

SystemData needed to perform the load

The result type returned by the load operation

Load the data for this prefab onto the given Entity Read more

Trigger asset loading for any sub assets. Read more

Auto Trait Implementations

impl<A, F> Send for AssetPrefab<A, F> where
    <F as Format<A>>::Options: Send

impl<A, F> Sync for AssetPrefab<A, F> where
    F: Sync,
    <F as Format<A>>::Options: Sync