• 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 CrossRiverGames · Jan 15, 2015 at 03:15 PM · cameraioscutoff

iPhone cuts off sides of camera

I'm having a bit of an issue with Unity and iOS. Depending on the device, parts of the left and right sides of my camera are cut off, with more cutoff happening on iPhones, although there is still some cutoff on iPads. This keeps valuable information away from the player. Is there any way to stop the cutoff and have the iPhone/iPad simply display what the camera is showing? Thanks!

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 CrossRiverGames · Jan 15, 2015 at 05:16 PM 0
Share

For comparison, here is the scene in question in the Unity editor:

alt text

And the same scene on the iOS Simulator:

alt text

As you can see, the tutorial info is cut off on the Simulator.

unity.jpg (51.4 kB)
iphone.jpg (67.2 kB)

1 Reply

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

Answer by Paulius-Liekis · Jan 15, 2015 at 06:32 PM

Well...that's how you implemented your game. On a Game view click on "Free Aspect" and choose iPhone portrait and you will get the same. That's because your game doesn't do anything about portrait display.

The easiest fix: go to Player Settings and allow only Landscape screen orientations.

Edit: the proper fix is to implement UI in a way which works correctly in multiple aspect ratios. I have no idea what you used for UI. If you use NGUI it gives you means to make your UI wrap or scale automatically, but you have to set it up correctly. I'm quite sure new Unity GUI provides means for that to, but you have to set it up correctly anyway.

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 CrossRiverGames · Jan 15, 2015 at 06:43 PM 0
Share

The problem with that is that the game itself is in portrait. In fact, the game won't allow landscape orientations for that reason.

avatar image Paulius-Liekis · Jan 15, 2015 at 06:51 PM 0
Share

Why did you design your UI in a way which is not friendly to portrait layout? :)

avatar image CrossRiverGames · Jan 15, 2015 at 06:58 PM 0
Share

I am definitely trying to design it in a way that is friendly to portrait. It's just that one scene that is having problems.

avatar image Paulius-Liekis · Jan 15, 2015 at 07:02 PM 0
Share

I edited my answer to have more complete explanation.

avatar image CrossRiverGames · Jan 22, 2015 at 04:36 PM 0
Share

Thank you. I was able to rewrite that scene such that it now works properly.

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

26 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

Related Questions

How to make your UI fit any iOS resolution? 1 Answer

How to cut off these clouds on my camera? 1 Answer

Most efficient way to darken the screen? 3 Answers

Native camera FOV? 0 Answers

How to open Device camera in full view in unity 3d. 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