Finding the gameobject closest to the centre of the screen (WorldToViewportPoint)
Trying to figure out how I find the closest 3D GO to the centre of the screen. I'm looking at WorldToViewportPoint() as the most likely way to achieve this but I'm struggling to how I can cycle through the GO's to determine the distance from centre?
Any help would be massively appreciated.
Comment