First of all I would like to apologise if I make any English mistakes, English is not my first language…
Anyway, I am working on a game called “Garfio”, a 2d game that uses primarily mouse controlls. Yesterday I started having the “screen position out of view frustum” error when I run my scenes (Yes, I tried to create more scenes and it infected them as well). I tried any solution in the book (restarting unity, restarting my computer, creating new scenes, starting the game with my mouse off the screen, messing around with some camera settings, even building and running - where the game simply crashed) but nothing worked. I don’t know what to do, and I can’t create my game like this (oviously), and I need help. I did use the latest beta of Unity 4.6 .
I just did some testing, changed the camera to a different one and placed the smae scripts on it, and it works perfectly. I don’t know what the problem is, so I am leaving this question open, for anyone who knows a solution, and for anyone who has the smae problem in the future.
Thanks to everyone who helped!
Happens to me because I’ve done erratic camera movement.
In my situation, my camera was a child of a gameobject with a rigidbody with 0 mass, not only zero but that “infinity ZERO”.
After add a impulse to this rigidbody, it goes “to infinity and beyond” and this bugs camera’s ScreenPointToRay methods.
So a attempt solution is to analyse the camera movement.