Array of objects in front of player?

How would you set up so that all objects in front of player are put into an array? And I don’t mean in camera view, just anything in the forward 180degree area. Unless doing it by camera view would be easier, but not with raycasting, I want to try something more efficient. Any ideas?

You could just check every object KLICK and KLICK .
In case of 180 degrees you could use a big boxcollider …