Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Detect iPad

Discussion in 'Unity 5 Pre-order Beta' started by grosssmutttr, Mar 3, 2015.

  1. grosssmutttr

    grosssmutttr

    Joined:
    Apr 15, 2014
    Posts:
    167
    Hi there,

    I want to find out whether the iOS device is an iPad.

    Found that:

    if((iPhone.generation.ToString()).IndexOf("iPad")>-1){
    //bla bla
    }


    Unfortunately this is deprecated in Unity 5.
    I don't want to check every device since every half year there's a new one...

    Any idea would be great.