raycast like a slice of pie?

I cant find the code that would allow me to cast a ray that would cover an area that would look like a slice of pie with the pointy end being the origin. Thanks!

RayCast is a single line, not a wave, your best bet is to use several lines in the desired angle and have them all in the same function to get the same effect. So if you wanted to cover 45 degrees you would shoot one at 0, one at 45 and then how ever many you need in the middle depending on the object size in your scene that it needs to hit and the range.