UEngine::OnLostFocusPause

Pauses / un-pauses the game-play when focus of the game's window gets lost / gained.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Engine.h

Include

#include "Engine/Engine.h"

Source

/Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp

Syntax

virtual void OnLostFocusPause
(
    bool EnablePause
)

Remarks

Pauses / un-pauses the game-play when focus of the game's window gets lost / gained.

Parameters

Parameter

Description

EnablePause

true to pause; false to unpause the game