Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?
    Check out Himeko Sutori, the upcoming tactical RPG where you control armies of over 100 unique characters.

    #2
    Kismet has IsPIE, maybe there's an equivalent in UC, but haven't time to look atm...
    ----------------------------------------------------------------------------------------------------------
    What are the BEST Unreal Tutorials / Docs? There are none tbh... Here's why
    Instead its better to just take projects apart (see the free 'creators' listed here)

    Comment


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

      Comment


        #4
        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:

        Code:
        class'Engine'.static.GetEngine().GameViewport.bIsPlayInEditorViewport
        That seems like kind of a roundabout way to get to that variable, but it works and I only have to do it once.
        Check out Himeko Sutori, the upcoming tactical RPG where you control armies of over 100 unique characters.

        Comment


          #5
          WorldInfo.IsPlayInEditor()

          Comment

          Working...
          X