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
0
Question by petermsmith · Sep 22, 2014 at 04:18 AM · iosiphoneresolution

Force *only* iPhone 4 to 480x320 resolution

Hi--I've got a mobile game in development, and it runs smooth as butter on the iPhone 5; on the iPhone 4, it stutters a fair amount. And it's a very precise action game, so any stuttering ruins it.

Therefore, I want to force the iPhone 4 to half-resolution (matching the iPhone 3G) but keep using the retina display on the iPhone 5.

If I set the target resolution to 320 under iOS in Player Settings, that spoils it for the iPhone 5. Or so I would think--actually, when I set it to 320, then build it and try it on my iPhone 4, it still runs at 960x640.

So, two questions:

  1. Why doesn't the Target Resolution setting do anything? Is there a setting I have to tweak in Xcode? (Here I will be honest and say that I look at the range of settings in Xcode and feel a strong urge to close the laptop and go outside.)

  2. How can I force a specific resolution on iPhone 4 only? Detecting iPhone 4 in script (via iPhoneSettings.generation) and then setting resolution with Screen.SetResolution only produces a black screen--I understand SetResolution isn't really supposed to work with iOS. This answer looks promising: http://answers.unity3d.com/questions/271770/different-resolutions-on-iphone-4-and-4s.html -- but Unity appears not to generate AppController.mm for me, and the closest looking thing, UnityAppController.mm, doesn't contain any code resembling the code that this answer suggests I modify. (And to be honest again, the code it does contain is a little over my head.)

Would be majorly grateful for any assistance. Thanks!

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

0 Replies

· Add your reply
  • Sort: 

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

24 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

Related Questions

apple rejected app due to iphone & iPad resolution mismatch 1 Answer

2d iOS game: different resolutions question. 1 Answer

iOS Target Resolution doesn't seem to affect resolution 0 Answers

How do you account for iPhoneSettings.generation not working in the Editor? 2 Answers

Unity Screen.SetResolution gives me black screen on iPhone 4S 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