Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 M3kara · Jul 15, 2014 at 03:53 PM · resolutionscreenheightwidthfit

How can I make the game Screen to fit resolution

So I'm here wondering how I can simply make my game screen to fit the different resolutions. I used (new Rect(Screen.width/2.5f,Screen.height/1.73f,Screen.width/5,Screen.height/10) at the menus and it worked perfectly. But the problem is that the game screen has a first person view with it is holding a sword. But you can't see the sword if you are not in a aspect ratio of 16:10 or lower. The height has to be lower than the width * 0,625.

So if you are using a resolution that is 1366x768, then you have to make sure you have a height lower than 1366 * 0,625, which is 853, which works fine. But if you got a screen like 800x600 then your height will be higher than what you get as result, and that means you can't literally see the sword. If anoyone could lend a hand, I would appreciate it!

Edit: Here you go 1366x768 1366x768

800x600 800x600

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 NorthernVisionStudio · Jul 15, 2014 at 04:53 PM 0
Share

can you give us a screen shot of 1366x768 and 800x600, then 800x600 the way you want it (using photoshop or something). There are many ways to do this, depending on the outcome you're looking for

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by awest · Jul 15, 2014 at 04:50 PM

You can set a fixed ratio. Controlling Aspect Ratio in Unity

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 M3kara · Jul 15, 2014 at 09:43 PM 0
Share

Awest, your fix worked like a charm! 1024x768

Worked like charm! (tested on 1024x768 res!) Thank you!

avatar image
0

Answer by RavenFelman · Mar 25, 2019 at 02:14 PM

There is a way to achieve the same thing but without the black bars?

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Object resolution 0 Answers

Game fills only one quarter of the screen, why? (Android) 1 Answer

Screen width and height, how to bypass?! 1 Answer

Changing height of camera based on device aspect ratio. How? 0 Answers

Cutoff top and bottom of screen instead of sides when changing aspect ratio 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