Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Oct 10, 2018 at 08:59 PM by pako for the following reason:

Problem is not reproducible or outdated

avatar image
2
Question by gyro · Oct 25, 2013 at 09:34 PM · inputmousepositioninput.mouseposition

Input.mousePosition incorrect on second monitor

When using two monitors with different (native) resolutions. Input.mousePosition is offset vertically by the difference in screen resolutions.

Only in play mode, and only tested on OSX. Game built with 4.2.1f4. This did not happen in older version of game built with 3.5.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image geekstress · Nov 06, 2013 at 03:10 AM 0
Share

I am experiencing this issue on OSX as well.

avatar image Fohlin · Nov 06, 2013 at 11:10 AM 0
Share

Same problem here. The Input.mousePosition changes value when I drag the play window between my two monitors.

avatar image meat5000 ♦ · Nov 06, 2013 at 11:13 AM 1
Share

A second monitor extends the desktop. The screen position probably does not do 0->x 0->y but probably looks like x->(x+x1) 0->y1 on the second screen where x1 and y1 are the coords on monitor 2, assu$$anonymous$$g desktops are side by side.

avatar image instele · Oct 10, 2018 at 12:43 PM 0
Share

It seems the mouse position is always relative to the main display.

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Input.mousePosition only detects motion outside of window if I move really slow. 1 Answer

Mouse moves over GUI 1 Answer

How do I override or place inputs in the input object for automation? 3 Answers

Synchronizing Fake Mouse Position with Actual Mouse Movement 0 Answers

Input.mousePosition equivalent to first finger touch? 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges