Forgive me if this is a repeated subject. I am working on a project that is for both iOS and Android. There are some plugins and other things that are platform specific and was wondering if there is a good way to organize such a project that does not involve having two copies of the project. Maybe something like an if def?
thanks!
You can use #if UNITY_IPHONE … #endif and #if UNITY_ANDROID … #endif in your c#/js scripts.
Harry
Thanks that should do it!
Here’s a link to the platform dependent compiling for your scripts.
http://unity3d.com/support/documentation/Manual/Platform%20Dependent%20Compilation.html
Since there’s a lot more than just iphone and android. Other ones may come in handy. ^.^