• 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
Question by serdechny · Mar 09, 2020 at 10:02 PM · cameraproblem during runtimezoom-in

the size of my camera always change

when I click the play game button normally every t$$anonymous$$ng is alright. but when I click the play game button with the "Maximize On Play" option on the camera zoom in a bit and for my game its a big problem, how can I fix it.

normal playalt text

with "Maximize On Play" option on: alt text

annotation-2020-03-09-235824.png (209.1 kB)
annotation-2020-03-09-235839.png (46.7 kB)
Comment

People who like this

0 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 tormentoarmagedoom · Mar 09, 2020 at 10:23 PM 0
Share

Hello is not zooming, the problem is your game wondow is not the same size as ypur full screen.

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Fragsteel · Mar 09, 2020 at 10:26 PM

I believe t$$anonymous$$s is because the aspect ratio changes. Note how wide the Game window is before playing, compared to how tall it is. Then look at the difference after you launch. Also, it appears that there is no vertical "zoom", as you don't see anyt$$anonymous$$ng cut off on the top or bottom during Play mode.

If you click on the dropdown at the top that says "Free Aspect" and instead choose a fixed resolution (like 1920x1080) then it should change so that not$$anonymous$$ng's cut off - you'll instead get letterboxes on one size if the window doesn't have the exact same aspect as the aspect ratio you chose. If it does zoom in a bit, it'll be a real zoom that you can control with the Scale slider near that dropdown.

Comment
tcollincox

People who like this

1 Show 3 · 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 serdechny · Mar 09, 2020 at 10:46 PM 0
Share

unfortunately it only get worse this is the results: alt text

annotation-2020-03-10-004636.png (114.1 kB)
avatar image unity_ek98vnTRplGj8Q serdechny · Mar 09, 2020 at 10:52 PM 0
Share

Sure it gets worse, but now if you have your game windows set to a fixed aspect ratio then you can change the camera's field of view and it should be consistent across both windows.

avatar image Fragsteel serdechny · Mar 10, 2020 at 09:38 PM 0
Share

It may not be "worse", depending on your target device and other considerations. Notice it's not cutting off the top or bottom, just the sides. If you took the window as you see it in the editor in the first image (before the zoom), and you enlarged it to be full screen so that the left/right sides touched the edges of your monitor, then the top and bottoms of that image would not touch the top and bottoms of your monitor.

This is because that aspect ratio is very different than most monitors, which are 16:9 or 16:10. The aspect ratio of that window is more like 16:5 or something, and you're unlikely to find a screen with that aspect ratio.

I would make sure you set the fixed window size to have an aspect ratio equal to what you expect the player to finally have. For example, if I have a 16:9 monitor, with 1920x1080 resolution, then this new aspect ratio is actually better because I can now run the game in full screen. Most (but not all) phones also have a 16:9 resolution.

If it's important for you to have the player see further on the horizontal axis, then I'd follow @unity_ek98vnTRplGj8Q 's advice and change the camera field of view.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

188 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

Related Questions

How to use vuforia AR Camera for Zoom 1 Answer

Simple Camera ZoomIn Out Script 1 Answer

Cinemachine 2d camera problem 0 Answers

How to make camera position relative to a specific target. 1 Answer

Problem with Camera when building 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