**I was wondering the best way to check the area for collisions before spawning an object, certain variables and commands suggest there might be an easy way to do this.
such as **
SpawnInfo.bNoCollisionFail = false;
If there is no easy way, is the best way to grab the Actor out of the UClass and find its size, (maybe using GetActorBounds, although i cant work out how to use this.) then sweep the area with those dimensions?
Not totally relevant but this is what i have so far
UClass* newModulePrefab = (UClass*) GetRandomWithTag(Modules, newtag); //Now to test COLLISION! AModule* mod = newModulePrefab->GetDefaultObject; //Convert the UClass to an Actor to get its size and make a box. //Now find the bounds of the actor and make a FBox out of it, then check for collision........ newmod = World->SpawnActor<AModule>(newModulePrefab, pendingexit->GetActorLocation(), SpawnRotation, SpawnInfo);