Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AGameStateBase
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const AGameModeBase * GetDefaultGameMode () |
Helper to return the default object of the GameModeBase class corresponding to this GameState. | GameFramework/GameStateBase.h | |
const T * GetDefaultGameMode () |
Helper template to returns the GameModeBase default object cast to the right type | GameFramework/GameStateBase.h |
GetDefaultGameMode()
Description
Helper to return the default object of the GameModeBase class corresponding to this GameState. This object is not safe to modify.
| Name | GetDefaultGameMode |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameStateBase.h |
| Include Path | #include "GameFramework/GameStateBase.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameStateBase.cpp |
const AGameModeBase * GetDefaultGameMode() const
GetDefaultGameMode()
Description
Helper template to returns the GameModeBase default object cast to the right type
| Name | GetDefaultGameMode |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameStateBase.h |
| Include Path | #include "GameFramework/GameStateBase.h" |
template<class T>
const T * GetDefaultGameMode() const