Testing which device your game is playing on?

Is it possible to find out which OS and/or Device (1st gen,2nd gen or 3Gs) in a Unity game and with that info enable/disable certain features that work/not on the different devices?

Forgive me if this has been asked/answered but I could find nothing using the search.

iPhoneSettings.model

static var model : string

Description
The model of the device (Read Only).
Possible examples: iPhone or iPod Touch

iPhoneSettings.systemName

static var systemName : string

Description
The name of the operating system running on the device (Read Only).

iPhoneSettings.systemVersion

static var systemVersion : string

Description
The current version of the operating system running on the device (Read Only).

Just open the script reference in the unity iphone help (NOT THE ONLINE SCRIPT REFERENCE) and search for “iphone” to get the iphone related stuff.

oh, if you know all correct terms for the different models and systems then please post them.

Disregard this post.

Is iPhoneSettings.generation a 1.1 thing? Because I do not have that in my class.

Thanks… I think, “Disregard this post” confuses me, do I disregard the post you replaced disregard this post with or is it an instruction to disregard VIC20’s answer? either way I’ll have a look into it so thanks VIC20, as my sig suggests I’m really just an artist but I like to poke around for answers now and again to help push my ideas forward.

He wrote something about iPhoneSettings.generation

Maybe this is 1.1 and it’s confidential till next week :lol:

Yeah my bad. Higgy would have stabbed me or something :stuck_out_tongue:

so that means today it just tells us it’s an iphone or ipod touch but next week it also shows us the generation?

oh i know you can’t answer… so i ask in another way:

so that means today it just says iphone or ipod touch without the generation?
imagine how useful it would be to know the generation of the device.

now that would be useful! guess we’ll see tomorrow… er… next week :stuck_out_tongue: