UWorld->SpawnActor() sometimes returns NULL

In 4.22 instead of bool you provide an enum that tells how to handle spawn collision problem. To just make it work you can use

spawnParams.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AdjustIfPossibleButAlwaysSpawn;

which will push spawned object out of the collision space of parent

1 Like