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
2
Question by ZayLong · Sep 01, 2013 at 08:55 PM · camerabuildaspect ratio

Build window doesn't match camera

When I preview/look at the game I'm building in the editor, it looks fine and reflects the bounds of the camera,

But when i output/build the .exe and run it, it clips out alot of it. I'm still learning Unity and I'm sure it's something noval but I can't seem to find the answer, so any help would be appreciated. Some screenshots given below to illustrate the issue. Thanks.

alt text

inspector.png (39.8 kB)
preview2.png (166.7 kB)
Comment
Add comment
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

1 Reply

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

Answer by fherbst · Sep 01, 2013 at 09:07 PM

In the game window, you can change from "Free Aspect" to the different aspect ratios the game will probably run in. Also, if you're using some kind of 2D toolkit, you should look at its documentation on how it behaves if rescaled and how to properly use it with different resolutions.

Comment
Add comment · Show 5 · 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 ZayLong · Sep 01, 2013 at 10:27 PM 0
Share

That doesn't appear to solve my problem, when I build the .exe everything remains the same. How can I make the bounds of the camera reflect the final result in the built .exe?

avatar image fherbst · Sep 01, 2013 at 10:36 PM 0
Share

It depends. Like I said, consult the documentation of the 2D toolkit (I assume you're using one). If you were using a "standard" Unity camera, matching aspect ratio would mean that you see exactly the same in editor as in the game. Thus, there must be some pixel scaling going on.

avatar image Bunny83 · Sep 01, 2013 at 10:38 PM 1
Share

It seems you don't understand what this answer is trying to tell you. The GameView window in Unity can be rescaled to whatever aspect ratio you like. What you see in the GameView is not what you see in your build because your build uses the aspect ratio you set in the project settings which depends on the resolution you set.

You can set the GameView in a mode so it represents the actual aspec it would use in your build, so you have to change your game to work with the build resolution and not some arbitrary resolution you currently have in your GameView.

avatar image ZayLong · Sep 01, 2013 at 10:49 PM 0
Share

I think I understand a bit better with that clarification, thanks to you both.

avatar image fherbst · Sep 01, 2013 at 10:49 PM 0
Share

That's good to hear! Don't forget to mark an answer as solved so others can find it better.

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

18 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

Related Questions

Distribute terrain in zones 3 Answers

Why my game is exported with a different camera size?? 1 Answer

Build for Windows : Camera rect always stretched 0 Answers

Changing Ortho Cam Size according to resolution 4 Answers

SOLVED - Force camera to fixed aspect ratio and screenshot 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