Preprocessor Symbols as global script variables

Hi,

there is a way to define custom preprocessor variables shown in Unity Editor Inspector in a separate area as “global script settings”? So it would be able to optimize code compilation with setup simply a global variable via Unity Editor (results in an automatically set preprocessor variable). This is like shader compilation runs in Unity.
Is it be able to develop a plugin for unity to do this functionality?

Thanks.

There’s a field in the Editor → Player Settings… I think under Other Settings

When you edit that field, be sure you press RETURN, don’t just click away otherwise your changes won’t stick.