#define directive for Editor code on Linux. #define directive for Editor code on Mac OS X. #define directive for Editor code on Windows. #define directive to call Unity Editor scripts from your game code. The platform #define directives that Unity supports for your scripts are as follows: Define You can run this code within the Unity Editor, so you can compile the code specifically for your target platform and test it in the Editor. To compile and execute a section of code exclusively for one of the supported platforms. Unity’s Platform Dependent Compilation feature consists of some preprocessor directives that let you partition your scripts