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 Guardian2300 · Jun 01, 2015 at 05:20 PM · unity 5buildresolutioncursoroffset

Screen Resolution Offsets Cursor and buttons

I've notice that if I don't have the max screen resolution in build version of game. The cursor will be where it should be at but when you try clicking buttons, it offsets and you can't click the button directly. Is this a bug or a programming error?

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

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Aggrojag · Jun 17, 2015 at 06:29 AM

http://issuetracker.unity3d.com/issues/button-position-is-wrong-on-fullscreen-player-which-aspect-ratio-is-different-then-monitors I believe it's a unity bug, as I'm experiencing it too. I did find this bug report.. I suggest upvoting it as I've tried to find a solution, but have yet to find one myself. Best of luck.

Comment
Add comment · Show 1 · 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 Guardian2300 · Jun 17, 2015 at 03:31 PM 0
Share

Thanks for showing me this. I have Up Voted the issue.

avatar image
0

Answer by Ashkan_gc · Jun 01, 2015 at 05:26 PM

This is not a bug in Unity. This is a programming error on your end. If unity had a bug this important almost certainly people have reported it and they would fix it (assuming unit tests of unity itself doesn't detect such things).

In order to be able to get more help, describe what version of unity you are using, what GUI technology and how you are detecting a click.

Comment
Add comment · Show 4 · 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 Guardian2300 · Jun 01, 2015 at 05:31 PM 1
Share

I believe the version is 5.0.2. I'm using there GUI system with GUILayout functions. I'm confused with how you're detecting a click. I'm creating the windows and buttons using the GUI and GUILayout functions. Doesn't the unity GUI detect the clicks?

avatar image Ashkan_gc · Jun 02, 2015 at 06:16 AM -1
Share

Well then the GUILayout.Button returns true when a click on that button happens so you write if(Guialyout.Button("your buton text") { //Write code for the click event } I advice you to move to the new UI system called uGUI which handles resolutions much better and at first might take more time to create due to not being code oriented but at the end is much more flexible and robust.

avatar image Guardian2300 · Jun 02, 2015 at 03:54 PM 1
Share

I will try that thanks. But since that doesn't solve the current problem I can't have this accepted as answer.

avatar image Guardian2300 · Jun 05, 2015 at 04:05 PM 0
Share

I have tried the new 4.6 GUI System but its not efficient and/or understanding enough for me to use it. I can't get the buttons I made to stretch to fit to canvas or panel. I shrunk the panel and added a button and the text gets shrunk. Doesn't explain how to code the buttons because I have a for loop for button creating that I need in the new GUI.

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

22 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

Related Questions

Distribute terrain in zones 3 Answers

Unity 5.1.3 Stretch in build 1 Answer

OnServerStart not being called in standalone build. Works in editor. 1 Answer

Unity 5 UI buttons don't respond well with clicks when used in windows standalone with different resolutions. 0 Answers

Is there a way to change the window resolution of a build without having the window snapping to the center of the screen in window mode? 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