Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
From

Spawns all meshes from a GLTF file into the scene.

Spawns all meshes from a GLTF file into the sceneEach mesh in the GLTF file becomes a separate StaticMeshActor, positioned using the transform from the GLTF file.

Parameters
sceneThe scene to spawn actors into
gltfPathPath to the GLTF/GLB file
Returns
Vector of spawned StaticMeshActor pointers

a Scene:

void MyScene::loadContent() {
auto actors = GltfSpawner::spawnAll(this, Path::engineGeometry() / "model.gltf");
}