5#include "Engine/Entity/Scene.h"
6#include "Engine/Entity/StaticMeshActor.h"
24 template<
typename ActorT = StaticMeshActor>
25 static std::vector<ActorT*>
spawnAll(
Scene * scene,
const std::filesystem::path & gltfPath )
37 template<
typename ActorT = StaticMeshActor>
Utility class for spawning GLTF meshes into a scene.
static std::vector< ActorT * > spawnAll(Scene *scene, const std::filesystem::path &gltfPath)
Spawns one actor for each mesh node in a GLTF file.
static std::vector< ActorT * > spawnAll(Scene *scene, Assets::GltfHandle gltf)
Spawns one actor for each mesh node in a loaded GLTF asset.
Owns scene entities, actor lifetime, and the scene graph root.
static std::vector< ActorT * > spawnAll(Scene *scene, const std::filesystem::path &gltfPath)
Spawns one actor for each mesh node in a GLTF file.
AssetHandle< GltfHandleTag > GltfHandle
Handle to a glTF container file.