Platform dependent compilation, in UnityScript?

Hi to all!

How can I instruct the compiler to not include a script in the build, depending on the platform? Something like

if(Application.platform == RuntimePlatform.IPhonePlayer)
{
     //Don't even think of including this script in the build
}

I’m sure it’s really simple, I just don’t know how to #flag it!

Many thanks.

1 Answer

1

I just didn’t search hard enough… UA’s search is lousy, google is the way…

#if UNITY_IPHONE

stuff

#endif

I use google instead also, I just type 'unity3d' at the start of my search lines.

–