26 const FTransform &SpawnAtTransform,
30 auto *World = GetWorld();
33 UE_LOG(LogCarla, Error, TEXT
34 (
"AUtilActorFactory: cannot spawn mesh into an empty world."));
38 FActorSpawnParameters SpawnParameters;
39 SpawnParameters.SpawnCollisionHandlingOverride =
40 ESpawnActorCollisionHandlingMethod::AlwaysSpawn;
42 auto *StaticMeshActor = World->SpawnActor<
AEmptyActor>(
43 ActorDescription.
Class, SpawnAtTransform, SpawnParameters);