- Home /
Putting Platform Specific Code in a plugin
Since plugins are DLLs how do I put OS specific code in them? Since they are compiled AFAICT this won't work
#if UNITY_STANDALONE_OSX
DoOSXStuff();
#elif UNITY_STANDALONE_WIN
DoWinStuff();
#endif
Since there will be only 1 .DLL
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613173146im_/https://answers.unity.com/themes/thub/images/avi.jpg)