Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 klintmane · Jul 08, 2015 at 09:00 AM · canvasbuttonsoffsetfullscreenpointer

Canvas buttons and fullscreen aspect ratio

Hello guys, I am having a problem and it is really getting on my nerves.

Whenever I build the project and use a resolution which has an aspect ratio different from mine the canvas looks pretty much the same, but the pointer is offset, so to click a button I need to keep my mouse cursor slightly to the right or left or above it or whatever.

It works fine if the game resolution is the same as the OS screen resolution, or if I run the game windowed.

I've tried using the canvas scaler, aspect ratio fitter and tried anchoring the buttons correctly, but the result is still the same. I've also tried starting a new project with just a canvas and two buttons or even changing the canvas render mode and the camera projection, but to no avail.

Am I doing something wrong?

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 lolivier · Jul 21, 2015 at 08:10 AM 0
Share

Hello,

I got the same problem. Did you find a way to solve it ?

Edit: I just find this post: http://issuetracker.unity3d.com/issues/button-position-is-wrong-on-fullscreen-player-which-aspect-ratio-is-different-then-monitors

Does that means it's a real issues or can it be only a problem which can be solve by users ? Anyway, if it's a real issues, vote for it please !

avatar image klintmane · Aug 08, 2015 at 09:59 AM 0
Share

Seems to be an issue with Unity, I never found a fix for it

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by FredEspo · Aug 01, 2015 at 07:30 PM

On your Canvas Scaler component, is the "Screen Match Mode" set to "Match Width Or Height"? And is the "Match" set to "0.5"?

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 klintmane · Aug 08, 2015 at 10:02 AM 0
Share

The Ui Scale $$anonymous$$ode is set to World because the Canvas Render $$anonymous$$ode is also set to World Space, but even if you set it to Screen Space and $$anonymous$$atch Width or Height or anything else (believe me I've tried them all) it still won't work with different aspect ratios. I believe it is an issue with Unity and needs to be fixed

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

Tutorials for 2D game GUI 2 Answers

UI Buttons Not Working On Other Camera? 0 Answers

How can you use an object as a button 0 Answers

Canvas buttons too slow 0 Answers

How do Pointer events work? 4.6 UI 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