Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

iPad Min 3 Gen is not detected properly by iOS native source supplied by Unity

Discussion in 'iOS and tvOS' started by perplex_bcn, Feb 20, 2015.

  1. perplex_bcn

    perplex_bcn

    Joined:
    Mar 1, 2013
    Posts:
    22
    I've reported a bug to Unity.
    There's a function called QueryDeviceGeneration at Classes/Unity/DeviceSettings.mm, which sets the deviceGeneration of the device. This is the part that is not correct:
    Code (C):
    1.         else if (!strncmp(model, "iPad4,", 6))
    2.         {
    3.             int rev = atoi(model+6);
    4.             if(rev >= 7)    _DeviceGeneration = deviceiPadMini3Gen;
    5.             if(rev >= 4)    _DeviceGeneration = deviceiPadMini2Gen; // iPad4,4
    6.             else            _DeviceGeneration = deviceiPad5Gen;
    7.         }
    8.  
    An iPad Mini 3 Gen is set as an iPad Mini 2 Gen. There's a missing "else" after the first "if"

    All credits to Miguel Algaba ;)

    Hope this help
     
    MrEsquire likes this.
  2. r618

    r618

    Joined:
    Jan 19, 2009
    Posts:
    1,270
    please submit this as bug, possibly include link to this thread so they will fix it
     
  3. perplex_bcn

    perplex_bcn

    Joined:
    Mar 1, 2013
    Posts:
    22
    Already done!
     
  4. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    Hi, this issue will be fixed in 4.6.3p1.
     
    perplex_bcn and MrEsquire like this.
  5. fluxist8070

    fluxist8070

    Joined:
    Sep 6, 2010
    Posts:
    46
    My uGUi builds way small and perfomance on my iPad mini 3rd gen is very slow when I build to device with RC3. Is this bug the reason why? If I build to a 5S performance is fine.