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 /
avatar image
0
Question by Drunk Ulbabrab · Jun 17, 2015 at 07:02 PM · unity 5gui

Wrong button detection at low resolition

Hi there, I start to convert my old NGUI project to new Unity 5 ui. But I have a problem with mouse detection at 1024x768. Is I start the game from the build in Fullscreen mode the mouse detection collider of a simple button isn't aligned with the button texture. there are no problem in editor mode.

alt text

alt text

simplemousescene.jpg (151.5 kB)
uibug.jpg (117.0 kB)
Comment
Add comment · Show 1
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 Artichoke121212 · Jul 06, 2015 at 07:53 AM 0
Share

I've encountered this as well with Unity5 and Windows 8.

The problem occurs when the game is run fullscreen in a resolution not fit for the monitor ratio, i.e. the monitor is 16:9 and you select resolution 640x480, which is 4:3.

The problem will not occur if you select any resolution with same ratio, i.e. if your monitor resolution is 1920:1080 (16:9), the problem will not occur as long as you select resolutions 1920:1080, 1280:720, 1600:900, etc., as they are all 16:9, or you run any resolution in windowed mode.

The problem doesn't occur in the editor.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Yury-Habets · Jun 18, 2015 at 06:15 AM

Does this happen on Standalone build? Which version of Unity are you using? (if this is the latest available, please report a bug and attach your simple project to the report).

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

Answer by Artichoke121212 · Jul 06, 2015 at 08:03 AM

This is a known bug: http://issuetracker.unity3d.com/issues/button-position-is-wrong-on-fullscreen-player-which-aspect-ratio-is-different-then-monitors

For a temporary fix, run the app in the same aspect ratio as the monitor.

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

Answer by SilverStorm · Jul 11, 2016 at 12:52 PM

Disable "Use Dx11" in the player settings, that fixed it for me on all resolutions it works now.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How To Scale GUI Based On Screen Resolution 1 Answer

GUI.Box NullReferenceException 0 Answers

Unity UI never stays in place 1 Answer

UI working fine in editor but glitched in standalone builds 1 Answer

Changing a GUI Button's font in code 1 Answer


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