[−][src]Trait amethyst_assets::Asset
One of the three core traits of this crate.
You want to implement this for every type of asset like
Mesh
Texture
Terrain
and so on. Now, an asset may be available in different formats.
That's why we have the Data
associated type here. You can specify
an intermediate format here, like the vertex data for a mesh or the samples
for audio data.
This data is then generated by the Format
trait.
Associated Types
type Data: Send + Sync + 'static
The Data
type the asset can be created from.
type HandleStorage: UnprotectedStorage<Handle<Self>> + Send + Sync
The ECS storage type to be used. You'll want to use DenseVecStorage
in most cases.
Associated Constants
Loading content...Implementors
impl<T> Asset for Prefab<T> where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,