Different approach to Target selection

Hi everyone! I have came up with quite different approach to target selection, just wanted to share, maybe someone will like this one too. So here I use Vector3.Dot function that simply gives me a cos between the Forward direction of main camera and the Vector between the Camera and the target. It can be also controlled with some value, whether we include the target in or not, even if it is on the screen by changing the if condition after foreach (in my case, 0 is a 90 degrees angle).

Privacy & Terms