Is there a way to access all colliders?

So what my script does is make the AI pick a location that it will go to, I want it to make sure that the location doesn’t have any colliders in it.

I could make hundreds of variables and then check if the location is in any of them. But that isn’t very super smart. Is there something that I can do to access all colliders in the scene?

Something like

if( GlobalColliders.bounds.Contains(Location) )

Sorry if this is obvious or has already answered, I’m new to this stuff

I want it to make sure that the location doesn’t have any colliders in it.

Try this:

const int layerMask = ~0;// ~0 means every physics layer
if( !Physics.CheckSphere(location,radius,layerMask) )
{
	// no colliders
}

Is there a way to access all colliders?

Yes:

Collider[] collidersInRange = Physics.OverlapSphere( location , radius , layerMask );