Is there any way for the game to know if it's being played in the editor?

PIE crashes. I think it’s related to Steam Input somehow. I’d like to skip the Steam Input code if the game is PIE. Is there any way to check for that?

Kismet has IsPIE, maybe there’s an equivalent in UC, but haven’t time to look atm…

In GameViewportClient.uc there is bIsPlayInEditorViewport which you could probably use.

Thanks everyone. You pointed me exactly where I needed to look. I had something that was crashing PIE, but I was able to get around it by checking this:


That seems like kind of a roundabout way to get to that variable, but it works and I only have to do it once.