Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 WirealTalha · Mar 04, 2019 at 08:12 PM · unity 5resolutiontransform.translateaspect ratio

aspect ratio vs fixed resolution [HELP PLEASE]

Hi, I would like to know the difference between both?

I am using transform.translate(speed*time.deltatime, 0f,0f) on a cloud to move it in canvas. I've set the speed to 10f; In the Editor view When i use the aspect ratio (i.e 16:9) the cloud moves fast. but when i use the fixed resolution to (i.e 1920*1080), which is 16:9, the cloud moves very slow.

Why is that happening? am i missing something?

Comment
Add comment · Show 4
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 Ymrasu · Mar 04, 2019 at 08:26 PM 0
Share

This is because the canvas changes size to fit the window. (Select the canvas when you are switching back and forth to see this). Selecting aspect ratio in your game view will make the game the size of your current game view window (while maintaining the correct ratio). If you select fixed, it will scale itself to fit that amount into your window (basically you are zoo$$anonymous$$g out). The cloud moves at the same speed, but in the fixed it just appears to move slower due to having a zoomed out look to it.

avatar image WirealTalha Ymrasu · Mar 04, 2019 at 08:36 PM 0
Share

@Ymrasu So its alright? I am just being a little paranoid right?so you are saying i should work in my reference resolution, 1080*1920, (in fixed) rather than my Desired Default aspect ratio, 16:9.

avatar image Ymrasu WirealTalha · Mar 04, 2019 at 08:44 PM 0
Share

Yes its alright. If you plan to not let the user resize their game window you can work in the fixed resolution. But if you want them to be able to resize, working in just aspect ratio will allow you to see how your game runs at varying sizes.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Casiell · Mar 04, 2019 at 08:22 PM

Aspect ratio is a ratio of screen width to screen height. This include all resolutions where width/height = 16/9.

1920*1080 is just one of (infinitely many) resolutions that fit into that ratio.

Selecting 16:9 in your game view creates a game view with largest possible resolution that would fit into your game view window size without any scaling.

Selecting 1920*1080 in your game view creates a window of exactly this size and scales it down so it fits your game view. There is a scale slider where you can see a factor by which it was scaled.

Your object speed does not change, it is always the same, it's just on lower resolution it takes less time to go through your window because there is less pixels to traverse.

Depending on your target outcome you may want to factor resolution (not aspect ratio!) into your speed calculations so it always takes the same time to go from one edge of the screen to the other.

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 WirealTalha · Mar 04, 2019 at 08:28 PM 0
Share

Thankyou for your prompt reply :)

so you are saying I'm good?? Dont need to worry about these?

avatar image
0

Answer by Natrad · Mar 20, 2019 at 09:28 AM

Hi @WirealTalha

Hi there, the same for me. After looking around on the internet about 2 hours :(. Watching a lot of tutorials video. Finally I found the full tutorial that solve this issue. Tested and it worked for me.

Hoping that will help you. Link: https://youtu.be/2uYkom__5zo

Key point: DO NOT CHANGE THE Camera's projection SIZE if you want the velocity is the same at any device. Instead of that, Scale your game as the way of above tutorial. Good luck.

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

197 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 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 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 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 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 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 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 avatar image

Related Questions

Mobile Development screen resolution and aspect ration 1 Answer

Unity 2D autoScale the sprite objects in worldspace according to resolution? 0 Answers

Screen Resolution Offsets Cursor and buttons 2 Answers

Resolution being saved as 0x0 0 Answers

Target android/ios with same assets? 2 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