Function rend3_gltf::instance_loaded_scene
source · [−]pub fn instance_loaded_scene<'a, E: Error + 'static>(
renderer: &Renderer,
loaded: &LoadedGltfScene,
nodes: Vec<Node<'a>>,
settings: &GltfLoadSettings,
parent_transform: Mat4
) -> Result<GltfSceneInstance, GltfLoadError<E>>
Expand description
Instances a Gltf scene that has been loaded using load_gltf_data
. Will
create as many Object
s as required.
You need to hold onto the returned value from this function to make sure the objects don’t get deleted.