I was hoping for an easy fix to support multiple aspect ratios (i.e. Android devices) for my game. The idea was to simply stretch everything to every screen resolution. Therefore I made a tiny little script for my orthographic camera:
function Start () {
camera.aspect = Screen.width / Screen.height;
}
However, on some resolutions I get an error:
Screen position out of view frustum (screen pos 185.000000, 830.000000) (Camera rect 0 0 480 854) (or similar values)
I don’t understand how my screen can be outside the frustum. How do I get it back in there?