Need info on preprocessor directive

Hi,

I am trying to make one simple unity physics based app that can run on iPad, IPhone and iPod devices (Universal Binary). Is there any
preprocessor directive to check the device on which we are running so that I can load the prefabs from “Resource” folder.

Kindly help me in this regard.

Thanks in advance,
kristen

The preprocessor directives can only distinguish between iOS and Android, but not between different iOS devices. However, the iPhoneSettings.model property can determine which device is being used at runtime. If your code only needs to load different assets for each variant then this shouldn’t make any difference to performance relative to conditional compilation.

preprocessor directives won’t help you, but you can add runtime check to your scripts: