- Home /
Can I get the Unity3D engine version in Xcode and how to do a conditional compile based on the version?
I'm working on a plugin in Unity3D for iOS. For some reason, I need to specify some code in the native code (.mm in Xcode) to be compiled under before Unity3D 4.1 and other be compiled after Unity3D 4.1(including). Maybe something like this:
#if UNITY_VERSION < UNITY_4_1
//Some code be compiled before Unity4.1
#else
//Some code for new version
#endif
I know there is a Platform Dependent Compilation in the Unity3D Editor, but how can I get the engine's version in Xcode and do a "Unity Engine version based condition compilation"? Any suggestion will be appreciated!
Your answer
Follow this Question
Related Questions
iOS.RemoteNotification userInfo empty 2 Answers
iOS location permission plugin build fails 0 Answers
Why doesn't my bundle build for Mac OS X using Xcode 4.5? 1 Answer
AudioServicesPlaySystemSound - iOS System Sounds from Unity 1 Answer
Adding files and frameworks to xcode automatically after build button 1 Answer