AGameModeBase::SetPause

Adds the delegate to the list if the player Controller has the right to pause the game.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h

Include

#include "GameFramework/GameModeBase.h"

Source

/Engine/Source/Runtime/Engine/Private/GameModeBase.cpp

Syntax

virtual bool SetPause
(
    APlayerController * PC,
    FCanUnpause CanUnpauseDelegate
)

Remarks

Adds the delegate to the list if the player Controller has the right to pause the game. The delegate is called to see if it is ok to unpause the game, e.g. the reason the game was paused has been cleared.

Parameters

Parameter

Description

PC

the player Controller to check for admin privs

CanUnpauseDelegate

the delegate to query when checking for unpause

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss