How to know if game is running in either PIE or Standalone mode?

I realize this is late but it may still be useful to others:



if (GetWorld()->WorldType == EWorldType::PIE || GetWorld()->WorldType == EWorldType::Editor)
{
:
}


8 Likes