While testing our upgraded project in Unity5 we ran into an odd issue where we can no longer select objects when we’ve zoomed out. A bit of digging around showed that the OnMouseOver function simply doesn’t detect the colliders any more once the camera moves too far away from them. (Having a bit of trouble measuring the exact distance.) If I simply zoom out the camera goes back and up, once it stops detecting and I angle it so as to move it closer to the environment it starts detecting the environment again.
I added a simple ScreenPointToRay Raycast and this stops returning hits at the exact same point. In Unity4 the OnMouseOver event has a much longer range, so has the default range it checks for been changed? And if so can I set it back to the previous range or do I simply need to start using custom, really long, raycasts?