Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
avatar image
0
Question by Alucard97 · Jan 06, 2018 at 12:23 PM · inputbuildbug-perhapseventsystemwindowed

issue with mouse input in windowed mode (Bug ?)

Hi,

I'm experiencing an issue where standalone build (OSX) in windowed mode only gets correct mouse input when the window is exactly at the center of the screen. Lets say i have some buttons, when i build my game the window spawns at the center of the screen and i can interact with them just right, but when i move the window the game acts as if i didn't move it. i have a grid made of buttons, they use basic hover functionality. here is how it looks when window is at the center of the screen.

https://imgur.com/mLwcLzS

It works as expected. and here is how it looks after moving the window a little left.

https://imgur.com/Ztugr3G

looks like mouse position used by unity is relative to the screen? If this is the case ,is there a way to make it relative to the window instead?

everything works fine when in fullscreen but it's still a very big problem when you want to make a casual game that you can play in a small window like for example minesweeper. Plz send help

sorry for my english btw. ^^

Comment
Add comment · Show 2
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 TobiKatze · Jan 06, 2018 at 02:13 PM 0
Share

Care to post some of your code? Do you use Unitys built-in UI for the Buttons? What do you mean by "basic Hove functionality"? If there is your own code to that, just post it. No code, no answers :)

::EDIT which Version of Unity do you use? 5.3.8 fixed a similar issue...

avatar image Alucard97 · Jan 06, 2018 at 03:29 PM 0
Share

yes , i'm using unity's built-in Ui for the grid and everything. by basic hover functionality i mean default behavior of unity buttons with make them switch color to "highlighted color" when cursor is over them. code in that scene had nothing to do with that. To prove it I made a very simple test scene and the issue is still there. Care to take a look?

the package contains a simple scene and a simple script. When i build it in windowed mode results are as described before. Im on osx yosemite 10.10.5 , running unity 2017.1.1f1

mouse-inputunitypackage.zip (3.7 kB)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by TobiKatze · Jan 06, 2018 at 04:59 PM

Maybe this can help?

Comment
Add comment · Share
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

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

91 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Mouse y-axis locked only in build 0 Answers

Distribute terrain in zones 3 Answers

Local Multiplayer Player Select Screen with new Unity GUI 1 Answer

Custom Build step before compilation 1 Answer

Maximize on play issue, perhaps bug? 0 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