Introduce "synchronous" property. The UNITY_EDITOR flag is always set when compiling in the Editor, so it doesn't work to separate Play mode and Editor commands.