Finding iOS version

Hi all,

how can i find the iOs version a unity app is running on?

any help welcomed…

The iPhoneSettings class has a variety of system information including the OS name, version and the device generation.

About that, is there a future-proof way to check if the current device is an iPad? I know there’s the iPadFirstGen (or something like that) device generation setting, but this won’t detect a 2nd gen iPad in the future.
In one of my games, I want auto-rotate on iPad but not on the smaller devices.
One way to do it might be parsing the device generation value to string and then looking for the word “iPad”, but I was hoping there was a better way.