Check if Blueprint is being run within the editor (i.e if WITH_EDITOR in C++)

Rama’s free Victory Plugin has a node to identify whether game logic is running in Editor,PIE,or Game World!
(39) Rama's Extra Blueprint Nodes for You as a Plugin, No C++ Required! - Blueprint Visual Scripting - Unreal Engine Forums!

Also the free Low Entry Standard Library plugin has a platform node (not exactly what you want, but it also has other useful stuff )

2 Likes