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 Gardosen · Oct 20, 2014 at 06:42 PM · unity 4.6

Unity4.6 gui working with sprites on different resolutions

Hello Everyone,

in the last weeks i worked alot with the new Beta of Unity 4.6. For a Game i am making i want to use a menu which is not directly a menu. i want to use a background which acts like a map. on this map i want to place sprites who are acting like buttons.(so basicly they are buttons, as a buttons is as far as i saw just a sprites with the button script as a component)

this is working fine when i am using it in a special resolution. but now i am asking myself, how i can controll this design on different resolutions? is there a way like the anchor system of the new gui to tell the buttons where they have to be in relation to the ratio? or do i have to check on each resolution i want to support, where the button has to be placed, and have to do it over a script?

generally i could do it over a script and check the resolution, and place the buttons correctly, but i would like to know if there is another way.

because i already had many spots where i first solved my work trought sourcecode, and then i mentioned i can reach my target easier (for example, my first animations where codebased calculations :D then i understood the animation tool and the animator ^^)

i hope someone have a good tip for me :)

Greetings Gardosen

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Ryujose · Oct 20, 2014 at 09:40 PM

I always do this with rect transform, editing on my own, you've tried to put anchors just in the corners of your sprite? This Works for me on rectangular buttons or images.

Go to Rect transform -> anchor presets and set the anchor preset that is bottom right and configure it like I said.

Hope it Works for you, I'm working now with circle sprites and it doesn't work the same so I'm still investigating, maybe I've to set it more accurate.

Regards!

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

28 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

Related Questions

UI 4.6: custom anchors breaking sizeDelta 0 Answers

Unity 4.6 GUI Problem on Android 0 Answers

How can I make player surrounded by enemies with A*pathfinding 1 Answer

Cannot Connect To Unity Asset Store From Inside Unity Application 1 Answer

Unity is not responding at launch 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