- Home /
Location of Gameplay Window Relative to the Entire Screen
When I use "Input.mousePosition" I get the mouse coordinates relative to the gameplay window. That is, the point (0,0) is the bottom left corner of the gameplay window.
I'd like to know what this point is relative to the entire screen? So basically where the gameplay window is relative to the entire computer screen.
Thanks in advance.
Answer by dannyskim · Oct 30, 2013 at 06:28 PM
Inside the editor, this is how it's going to behave for the most part. Your best bet is to maximize the game window and then grab the reported point.
Is there a specific reason why you need a "full screen" point? Anything that you code should technically transfer over when you have the executable running in full screen mode.
I'm integrating an eye-tracker into unity, and I'd like to sync the mouse position and the eye-tracker coordinates. I'd be able to do this if I had the window location information.
When I have the game running in full screen everything's golden since I know that point.
I'd like to be able to play the game outside of full screen.