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 famadori · May 19, 2014 at 12:15 PM · spriteresolutionguitexturemulti-display

Multi-resolution!!! Sprite and GUI

I solved the problem, I created a GUITexture and put all indicators of position and texture size to zero, put the scala x and y size to zero too. Once positioned the alert by the GameObject transform object and made a script with parameters of height and width of the image and size you want to adiconar every GUI that calculates the size of the gui according to the resolution.

X = 0.5 / (Screen.Width / Screen.Height) * (ImageScaleX / ImageScaleY) Y = 0.5

It worked perfectly.

It really is necessary to treat all my sprites, texture and background for GUI code to comply with the resolution of my screen? There is nothing automatic? I've looked all do 2 days and find only solutions to be applied to all objects in all of the screen. There is at least one solution?

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 Romano · May 19, 2014 at 02:26 PM

Funnily enough I had the same problem recently and totally forgot I downloaded this ages ago: https://www.assetstore.unity3d.com/en/#!/content/9224

Free download from the Unity asset store called Asset Importer. You just need to treat one sprite how you want the rest of them to be and then use that as a template for the others. This method does require reimporting the sprites.

The other method would be to ctrl click all the sprites you want to change and then mess with the settings en masse in the inspector.

Unless maybe I'm misunderstanding the problem?

Comment
Add comment · Show 2 · 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 famadori · May 19, 2014 at 04:19 PM 1
Share

Thanks for trying to help, however I have expressed myself wrong. What I want is that all objects on the screen to behave the same way and change its size regardless of resolution.

avatar image Romano · May 20, 2014 at 03:31 AM 0
Share

Ah ok sorry. If you edit your question and rephrase it a little bit it should go back up to the top of the questions and someone else might be able to give you the right answer :)

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

21 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

Related Questions

How to deal with multiple resolutions in android? 1 Answer

Adjust overlay position for different resolutions 0 Answers

variable screen resolution sprite not scaling 0 Answers

Reduce Draw call for Multiple GUI Textures with same Texture 1 Answer

Unity 2D: Pixel Perfect Camera + Resolution Help 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