Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    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:
    168
    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.