I’m writing a script which disables the Mouse Look script when the cursor is moved outside of the player window, but:
Screen.width is returning the width of my full screen (1440) and Screen.height is returning 20. These are not the size of the player window as I’m currently working in the editor.
I’ve observed that if you do not have a Game view active when you press Play in the Editor, then the screen size is not reported accurately, even in Unity 3.1