How can I check in a script what device my game is running on?

So I finally released my first game and I made it not work very well on Iphone 5 and Ipod touch 5 because I set the made a plane the background and tested to see if it filled the screen on the Iphone 4. It does not on the Iphone 5 and there are other problems because of this to.

My question is how can I check to see what device my game is running on? If I knew this I think I could fix the problem.

You might be able to check your Screen.width and Screen.height, or your Screen.dpi to uniquely identify an iPhone5. I believe these values may be different between the various iPhone models.

If you are creating an Android/Desktop build, I’d consider disabling these steps - but by the sound of it you’re targeting IOS specifically.