Hello,
I have a mobile game with a GUI HUD. I use some calculations using screen.width and screen.height. This works fine on Android, but because iOS devices set the screen.height differently my HUD is all messed up. I want to fix this using a simple if statement:
if (Application.platform == RuntimePlatform.Android)
and
if (Application.platform == RuntimePlatform.IPhonePlayer)
But RuntimePlatform only has a iPhonePlayer. Because I am working with an iPad this doesn't seem to work.
Do any of you guys (and girls) know how I can detect iOS of all kinds?
Thanks,
Nils
↧