I was testing some code on my iphone4s(running IOS 8.1) for the first time using #if UNITY_IPHONE, however it didn’t seem to execute. I changed this to UNITY_IOS and it worked…
Has anyone else experienced something like this and would anyone know the difference between the two?
Also, I have an android project I am planning to move over for iphones and ipads. It has several plugins which use #if UNITY_IPHONE. Would I need to change each one of these to UNITY_IOS for them to work across all devices?
For a while I used UNITY_IOS since it made perfect sense to me (iPhone + iPad) however I’ve been making an effort to switch over to UNITY_IPHONE because it (UNITY_IOS) is not listed anywhere in Unity’s Documentation, while UNITY_IPHONE is. I have never noticed a difference between the two.
Interesting, I thought this was the case as well and UNITY_IOS was just a renamed version which came about later on.
Not sure why UNITY_IPHONE didn’t work in ios8 on my 4s though.
The docs are probably a bit outdated, as the engine defines only go up to UNITY_4_5. But, I’ve always used UNITY_IPHONE. It returns true on iPad as well.