AGameStateBase::GetDefaultGameMode

Helper to return the default object of the GameModeBase class corresponding to this GameState.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/GameStateBase.h"

Source

/Engine/Source/Runtime/Engine/Private/GameStateBase.cpp

Syntax

const AGameModeBase * GetDefaultGameMode() const

Remarks

Helper to return the default object of the GameModeBase class corresponding to this GameState. This object is not safe to modify.