#if UNITY_EDITOR
Debug.Log("Unity Editor");
Platform Custom Defines
It is also possible to add to the built-in selection of defines by supplying your own. In the Other Settings panel of the Player Settings, you will see the Scripting Define Symbols textbox.