helo
This commit is contained in:
@@ -11,7 +11,11 @@ fn spawn_level(
|
||||
models: Res<Assets<Gltf>>,
|
||||
gltf_assets: Res<GltfAssets>
|
||||
) {
|
||||
let gltf = models.get(&gltf_assets.wall).unwrap();
|
||||
println!("LIBRARY: {:?}", gltf_assets.library);
|
||||
let jumbo = gltf_assets.library.get("meshes/library/wall.glb").unwrap();
|
||||
let gltf = models.get(jumbo).unwrap();
|
||||
|
||||
commands.spawn(SceneRoot(gltf.scenes[0].clone()));
|
||||
// commands.spawn(SceneRoot(gltf.scenes[0].clone()));
|
||||
let asset = gltf.default_scene.as_ref().unwrap();
|
||||
commands.spawn(SceneRoot(asset.clone()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user