How to adjust texture quality or size or resolution according to different iDevices

adjust texture quality or size or resolution according to different iDevices

How to adjust texture quality or size or resolution according to different iDevices (iPod, Iphone, iPad etc.) automatically?
You can adjust this via the quality settings (Project settings > Quality) in Unity3D. It’s important that you use Mip Maps in the texture import settings!!! Import the best texture (max. 2048×2048), this will be used for the newest/best devices. Quality settings and Mip Maps will automatically downgrade your textures according to the older/slower devices depending on what you set in the quality settings in the editor.
Use this code somewhere during initialisation

1
2
3
4
5
6
7
8
9
10
11
function Awake(){
if( iPhoneSettings.generation == iPhoneGeneration.iPhone ) 
{ 
QualitySettings.currentLevel = QualityLevel.Fastest;
} 
else if( iPhoneSettings.generation == iPhoneGeneration.iPhone3GS ) 
{ 
QualitySettings.currentLevel = QualityLevel.Fast;
}
else if( iPhoneSettings.generation == iPhoneGeneration.iPhone4G )
{ and so on …}}
  1. Oberst Struppi says:

    Now i have World P1 with the Banana and the Hand.
    Look at the GameCenter Rankings :).

    My Knife Time will be updated soon :).

  2. synapsemassage says:

    @ Oberst Struppi,
    my new game earthing is released, would you like a promocode for earthing?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>