UWorld::GetAuthGameMode

Returns the current Game Mode instance cast to the template type.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Engine/World.h"

Syntax

template<class T>
T * GetAuthGameMode() const

Remarks

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.

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