Struct amethyst_gltf::GltfPrefab[][src]

pub struct GltfPrefab {
    pub transform: Option<Transform>,
    pub mesh: Option<MeshData>,
    pub mesh_handle: Option<Handle<Mesh>>,
    pub material: Option<MaterialPrefab<TextureFormat>>,
    pub animatable: Option<AnimatablePrefab<usize, Transform>>,
    pub skinnable: Option<SkinnablePrefab>,
    pub extent: Option<GltfNodeExtent>,
}

PrefabData for loading Gltf files.

Fields

Transform will almost always be placed, the only exception is for the main Entity for certain scenarios (based on the data in the Gltf file)

MeshData is placed on all Entitys with graphics primitives

Mesh handle after sub asset loading is done

MeshData is placed on all Entitys with graphics primitives with material

Loaded animations, if applicable, will always only be placed on the main Entity

Skin data is placed on Entitys involved in the skin, skeleton or graphical primitives using the skin

Node extent

Methods

impl GltfPrefab
[src]

Move the scene so the center of the bounding box is at the given target location.

Scale the scene to a specific max size

Trait Implementations

impl Debug for GltfPrefab
[src]

Formats the value using the given formatter. Read more

impl Clone for GltfPrefab
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for GltfPrefab
[src]

Returns the "default value" for a type. Read more

impl<'a> PrefabData<'a> for GltfPrefab
[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 Send for GltfPrefab

impl Sync for GltfPrefab