Checking for empty space before GameObject generation

I’ve got a system in place that generates a series of blocks but I’m having trouble with them overlapping each other. I need to find a way to check if an object is already in the space that the block is intending to occupy before it is generated. Any help at all would be appreciated.

Thank you.

Put in a collider that is a trigger. if that doesn’t trigger anything you are golden. And you can add your real object. Use the onTriggerEnter method.

If your objects have a collider attached to it, you can SphereCast from a certain height above spawn point and check whether you are hitting any of your other objects. if you are hitting do not spawn (choose another point to spawn) or spawn.