How do you develop games for multi-platforms in 1 single project

When you develop for multi-platforms for Android and iOS, you can use something like

if (Application.platform == RuntimePlatform.IPhonePlayer)

But what about distinguishing iPhone4, iPAD, iPAD mini, Iphone5? My game has different UI sizes for these platforms.

Thanks Fattie. But I wonder how to distinguish iPhone4 iPhone5 iPad IPAD MINI in Unity3d, since they all belongs to RuntimePlatform.IPhonePlayer.

1 Answer

1

OK I think I know what you’re asking now.

if ( iPhone.generation == iPhoneGeneration.iPad1Gen )

and all the similar commands, see doco page

also I use Screen.width very often to check exactly what device it is. Cheers!

Thank you so much! That's what I was asking!

glad to help!