I have been looking everywhere for information on this, and I keep finding failed urls and old information that doesn’t work anymore. Basically, I am making a 2.5D game for the iphone and ipad using unity. I was creating it on the iphone first, then changing any small things to make it run on the ipad like I’d expect it to.
Due to the camera not being correct on the ipad, I created seperate scenes for iPad. I want to make a simple bit of code to detect if they are running on an ipad or an iphone.
I am aware of the IphoneGeneration bit, but I can’t seem to get it to work. I have it set up like so, and I get errors in the unity engine:
if (iPhoneGeneration == iPhoneGeneration.iPad1Gen)
{
Application.LoadLevel(“gameIpad”);
}
Any ideas why the IphoneGeneration isn’t working for me? and if not, what are some alternate ways to detect if someone is running on ipad or iphone. Thanks!