Skip to content

Commit

Permalink
[Bug] Prevented baking actors into World Partition level spawned from…
Browse files Browse the repository at this point in the history
… Pool Manager
  • Loading branch information
JanSeliv committed Mar 31, 2024
1 parent 699fd08 commit d873436
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
Binary file modified Binaries/Win64/UnrealEditor-PoolManager.dll
Binary file not shown.
Binary file modified Binaries/Win64/UnrealEditor-PoolManager.pdb
Binary file not shown.
1 change: 1 addition & 0 deletions Source/PoolManager/Private/Factories/PoolFactory_Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ UObject* UPoolFactory_Actor::SpawnNow_Implementation(const FSpawnRequest& Reques
SpawnParameters.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AlwaysSpawn;
SpawnParameters.bDeferConstruction = true; // Delay construction to add it to the pool first
SpawnParameters.bNoFail = true; // Do not fail if spawn fails
SpawnParameters.bCreateActorPackage = false; // Do not bake this runtime actor into World Partition level
AActor* NewActor = World->SpawnActor(ClassToSpawn, &Request.Transform, SpawnParameters);
checkf(NewActor, TEXT("ERROR: [%i] %s:\n'NewActor' was not spawned!"), __LINE__, *FString(__FUNCTION__));

Expand Down

0 comments on commit d873436

Please sign in to comment.