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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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.