Choose your operating system:
Windows
macOS
Linux
bool GIsEditor
True if we are in the editor.
that this is still true when using Play In Editor. You may want to use GWorld->HasBegunPlay in that case. Whether this executable is running the cook commandlet