AController::GameHasEnded

Called from game mode upon end of the game, used to transition to proper state.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

AController::GameHasEnded()

APlayerController::GameHasEnded()

References

Module

Engine

Header

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

Include

#include "GameFramework/Controller.h"

Source

/Engine/Source/Runtime/Engine/Private/Controller.cpp

Syntax

virtual void GameHasEnded
(
    class AActor * EndGameFocus,
    bool bIsWinner
)

Remarks

Called from game mode upon end of the game, used to transition to proper state.

Parameters

Parameter

Description

EndGameFocus

Actor to set as the view target on end game

bIsWinner

true if this controller is on winning team