Spawning a TangibleActor

This commit is contained in:
2023-08-29 20:05:10 -04:00
parent c8db8c44da
commit 3ac39c2aaf
5 changed files with 19 additions and 2 deletions

View File

@@ -76,6 +76,13 @@ void ConsoleOutput::Truncate() {
}
}
AActor* CreateTangible(UWorld *w, UClass* uclass) {
FVector location;
FRotator rotation;
FActorSpawnParameters params;
AActor *result = w->SpawnActor(uclass, &location, &rotation, params);
return result;
}
} // namespace engineutil