Handling image size based on different ios device versions (Unity2D)

| | August 4, 2015

This game is built using Unity 4, C#, and the 2D toolkit. In the unity game scene settings, it is set to (ios 5 tall) and I matched the Menu background dimensions with the dimensions of an ios 5 tall device. When testing this build on a different ios device(ios 4 etc…), the menu background doesn’t fit (stretch) to the width and height of the tested device’s dimensions. The answer seems pretty obvious that i’m not handling all devices dimensions.

What would be a good approach on handling images based on different ios devices? Are there any build settings to build a project that handles each device dimensions?

Thanks in advance for any advice or a good approach for cross-device handling

One Response to “Handling image size based on different ios device versions (Unity2D)”

  1. to figure out which device the app is running on have a look at:

    http://docs.unity3d.com/ScriptReference/iPhone-generation.html function
    http://docs.unity3d.com/ScriptReference/iPhoneGeneration.html enumeration list

    example here: http://forum.unity3d.com/threads/iphone-generation.32742/

Leave a Reply