you can use
#if WITH_EDITOR
#endif
in anywhere your code, block between those directives only work when its with editor.
you can use
#if WITH_EDITOR
#endif
in anywhere your code, block between those directives only work when its with editor.