I’m using Unity 5.1.3 with MonoDevelop on a Mac with Yosemite 10.10.5 and I’m having problems with #if statements, For example, when I do
#if UNITY_ANDROID
something1
#elif UNITY_IPHONE
something2
#else
something3
#endif
in MonoDevelop it shows autocompletion for UNITY_ANDROID and “No completion found” for UNITY_IPHONE. In addition, something2 and something3 are grayed out but something1 is not. I can successfully build in MonoDevelop but get an Android compile error when I try to run this in Unity Editor. [something1 contains UnityEngine Android and Java statements.]
Steve