Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UWorld
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T * GetAuthGameMode () |
Returns the current Game Mode instance cast to the template type. | Engine/World.h | |
| Returns the current Game Mode instance, which is always valid during gameplay on the server. | Engine/World.h |
GetAuthGameMode()
Description
Returns the current Game Mode instance cast to the template type. This can only return a valid pointer on the server and may be null if the cast fails. Will always return null on a client.
| Name | GetAuthGameMode |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/World.h |
| Include Path | #include "Engine/World.h" |
template<class T>
T * GetAuthGameMode() const
GetAuthGameMode()
Description
Returns the current Game Mode instance, which is always valid during gameplay on the server. This will only return a valid pointer on the server. Will always return null on a client.
| Name | GetAuthGameMode |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/World.h |
| Include Path | #include "Engine/World.h" |
AGameModeBase * GetAuthGameMode() const