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 hai_2 · Feb 05, 2014 at 03:47 AM · androidswitchingplatform-supportios4

Need help to switch platform to iOS

Hi,

I've done a small game which i've tested successfully in android devices. But when i'm trying to switch platform between android to iOS, all the images are getting stretched. please check the below image in android platform, its now 512x128 RGBA 16bit.

alt text

But after switching to iOS platform, the image size is stretched to 512x512 RGBA compressed PVRTC 4bit.

alt text

Like this all the images are getting stretched. But i can able to build the project to xcode as well as iOS devices also. When i'm running in iOS device, some of the images are missing, displaying in wrong position with different height and width.

What exactly is the problem? should i've to do something before switching to iOS? Please help me out.

android.jpg (48.7 kB)
ios.jpg (54.9 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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by GameVortex · Feb 05, 2014 at 07:54 AM

That is because of the **Non Power of 2 setting** in the texture import settings. When on (which it is for normal Textures) it will upscale or downscale the image to the nearest Power of Two size ( 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048 etc). This is because Power of Two textures require less memory and less gpu power to load and use, so it is generally a good thing. On android this size does not need to be uniform (one edge can be 510 while the other can be 1024), but on iOS to get the benefit of Power of 2 textures it needs to be square, so the TextureImport Upscales/Downscales the texture to a square size.

You can turn off the Power of 2 requirement by clicking on the texture and in the inspector change the Texture Type to Advanced and then change the Non Power of 2 option to None and Apply the settings. But keep in mind that this is a change for all platform so it will still be off when changing back to android, and also only Power of 2 textures can use the best compression formats.

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

Answer by hai_2 · Feb 07, 2014 at 05:13 PM

Thanks for the help. I've tried GUI texture type, now image resolutions are fine.

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

19 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

Related Questions

Running android app on version 4.0.3 crash? 0 Answers

Scripts don't work when i try app 2 Answers

Android: Switching Unity activity back to previous app 0 Answers

Scene rendering problem on iOS and Android. 0 Answers

Error Exporting the Android App on Emulator 0 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