Struct amethyst_gltf::GltfSceneFormat
[−]
[src]
pub struct GltfSceneFormat;
Gltf scene format, will cause the whole default scene to be loaded from the given file.
Using the GltfSceneLoaderSystem
a Handle<GltfSceneAsset>
from this format can be attached
to an entity in ECS, and the system will then load the full scene using the given entity
as the root node of the scene hierarchy.
Trait Implementations
impl Format<GltfSceneAsset> for GltfSceneFormat
[src]
const NAME: &'static str
NAME: &'static str = "GLTFScene"
A unique identifier for this format.
type Options = GltfSceneOptions
Options specific to the format, which are passed to import
. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more
fn import(
&self,
name: String,
source: Arc<Source>,
options: GltfSceneOptions,
_create_reload: bool
) -> AssetResult<FormatValue<GltfSceneAsset>>
[src]
&self,
name: String,
source: Arc<Source>,
options: GltfSceneOptions,
_create_reload: bool
) -> AssetResult<FormatValue<GltfSceneAsset>>
Reads the given bytes and produces asset data. Read more