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 /
This question was closed Jun 25, 2012 at 12:05 AM by Wolfram for the following reason:

Duplicate Question, see comments

avatar image
0
Question by DAB · Jun 24, 2012 at 04:52 PM · vectorimagesresizing

Fitting images in vectors

I want to keep the two options (which are both separate images) within certain vectors of the the title box (which is a separate image itself).

The text are all images, each is a GUITexture. The images always move with different resolutions and Ratios, with all combinations.

alt text

http://new.tinygrab.com/b62f170e02448c4248cfe73ebe19b57ead561f5eb5.png

Comment
Add comment · Show 3
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 Wolfram · Jun 24, 2012 at 11:18 PM 0
Share

Put yourself in our situation and try thinking about whether you would be in a position to answer your own question, considering the information you have given us. If you come to the conclusion "yeah, sure!", think again. If you come to the conclusion "hm, probably not.", edit your question and add all missing infos that could help somebody who has no idea whatsoever how your scene is constructed.

To provide a few hints what might be missing:

You would have to tell us at least how you are generating both text and boxes. 3D Objects? GUIElements/GUITextures/GUIText? UnityGUI/OnGUI()/GUI.something? What anchoring settings are you using for your texts (if they are texts at all, and not some textures with text in it - are they?)? Does the problem occur/ look differently only when you change the aspect ratio of your Game window, or also when you change its resolution, keeping the aspect ratio fixed?

avatar image Wolfram · Jun 24, 2012 at 11:54 PM 1
Share

That is still not enough info, as we still know nothing about how you actually place your textures, whether you use pixel or screen coordinates, viewport scaling or pixel placement, etc., whether all your textures use the same placing mechanism, whether you are creating your game to be run on differen screen resolutions and/or aspect ratios or not, and so on.

But I will try to cough up an answer anyway.

avatar image Wolfram · Jun 25, 2012 at 12:04 AM 0
Share

Actually, this is too much of a duplicate question, so I will point you in the right direction, for example my answer to this question (but you should also search UNity Answers for other related questions, many users had the exact same problems before you). In particular, option "2)" would be the one interesting for you. To not only scale your textures to the right size but also place them independently of that size, you would proceed similarly with the localPosition of your GUITextures as explained in that answer.

After reading and understanding that answer (and possibly others you found), if it still didn't work out in your situation, feel free to re-open this question, and edit it to explain which particular part did not work out as expected, and possibly also give a code excerpt, or describe which transform and or pixelInset settings you used.

0 Replies

  • Sort: 

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

Unity resizes images to a mulitple of four 0 Answers

How to Reduce Texture File Size? 1 Answer

Is vector Image Support in Unity 1 Answer

How to get the tangent and normal of a collision? 1 Answer

How to split velocity into two smaller vectors at a chosen degree? 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