Can you change the iPhone generation that is used when running in Unity iPhone?

I asked elsewhere how you can identify the hardware your game is running on and was told


is the key.

This is great. But unfortunately having added it into my code, I am now always destined to be an "unknown" iPhone generation when running in the editor.

It'd be nice for testing things if you could change the generation that was reported to Unity. Is this possible?


Probably the easiest way around this would be the have an enumerator set of all the iPhone/iPod touch models, and a global variable set to one of these in a script. Then where ever you are checking iPhoneSettings.generation, if it returns unknown, use the global variable as the generation setting. That way you have full control, and removing it from your code for publishing should be fairly straight forward.