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.

That’s one serious limitation… Thanks for sharing and not hoarding that nugget.
Its been a while, but I wonder if this still works to cover the other use cases???