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
1
Question by Flood1993 · Aug 03, 2014 at 06:10 AM · androidscenegameresolution

Game view auto-scaling resolution.

I'm testing out a few things and when I select on the game view a resolution of 480x800 (my device resolution), it auto-scales and it says: "Using resolution 254x424". These values changes as I make the size of the game scene bigger/smaller, but my problem is it's only scaling the resolution but not everything inside it, so there are things that I don't get to see. How can I fix that?

For example, if I have a button of length 300 it doesn't fit in my view.

Comment
Add comment · Show 1
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 Cal2 · Mar 04, 2015 at 05:42 PM 0
Share

I'd also like to know the answer to this.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by TheFloatingSheep · Mar 04, 2015 at 06:26 PM

I'm assuming that you're talking about GUI Textures and GUI Text... So... For perfect stretching an GUI Texture on your screen: Set the Pixel Inset to: X:0 Y:0 W:0 H:0 The position: X:0.5 Y:0.5 Z:0 The Scale: X:1 Y:1 Z:1


For making a GUI Texture for a button and making it to stretch on any resolution: Just set every value from the Pixel Inset to 0


For making the same thing with a GUI Text: Disable the Pixel Correct CheckBox, that will make the text blurry, i know, but don't worry... It's blurry because the scale isn't normal. Just try to scale it until is isn't so blurry, and import another Font than the Default one, and clicking the imported font, and changing the resolution in the inspector to 500 and, after that you can adjust the size without blurring it whenever you want from the Font Size value ;D


Hope it helps ;D Good Luck with your project.

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 Cal2 · Mar 05, 2015 at 05:23 AM 0
Share

hmm, what i mean is, if you look at the game view, and the resolution on the monitor is smaller then the game view, it will just cut the edges off.

so the 1024x600 resolution I have for the game view, is showing at 713x418 and is not showing everything I would see if I put it on my bigger monitor.

avatar image TheFloatingSheep · Mar 10, 2015 at 10:39 PM 0
Share

oh, so not just the GUI? Than you will have to change the projection to $$anonymous$$atrix. You can find a script for this in the Unity Documentation. Good Luck ;D

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

I can't create a new scene??? 0 Answers

Game looks different on device compared to Game View 0 Answers

Game window is broken 3 Answers

How to build android game with 18.5:9 ratio? 1 Answer

Why my game's FPS drop every time I change scene (Android Game) ? 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