UWorld::GetAuthGameMode

Returns the current Game Mode instance, which is always valid during gameplay on the server.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/World.h

Include

#include "Engine/World.h"

Syntax

AGameModeBase * GetAuthGameMode() const

Remarks

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.

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