Skip to main content

#Unity note : Platform dependent compilation


  • consist preprocessor directives, let scripts partitioned, compile and execute a section of code exclusively for one of the supported platforms
  • from the defined symbol we can get to know
  1. UNITY_EDITOR
  2. UNITY_EDITOR_WIN
  3. UNITY_EDITOR_OSX
  4. UNITY_STANDALONE_OSX
  5. UNITY_IPHONE
  6. UNITY_ANDROID
  7. UNITY_2_6 //unity engine version

    and so forth.

    complete information on unity help manual



Comments