Know if game started up by UE editor or by an executable


I need to know at runtime if my game has been started up by the Unreal Engine Editor or by a built executable. Is this possible (blueprint or C++)?

Thanks in advance


Thank you! As a sidenote, the Build Configuration must be set to “Shipping” for this to work.