AI spawning areas. What are the ways to make them?

I was thinking of making a gigantic collider and making a randomising code which would randomly pick a point given some ifs and linked to game time.

Is that good idea? Is it possible with a collider?

What other ways, better or worse are there?

Why don’t you just use some empty gameObjects and access their Transforms as spawn points?


Use a random range for each axis in a Vector3.

position = new Vector3(Random.Range(0, 100), Random.Range(0, 100), Random.Range(0, 100));

Also have a look at Collider.Bounds if you HAVE to use a collider.