UEngine::GetNetMode

Virtual ENetMode GetNetMode([FName](API\Runtime\Core\UObject\FName) NetDriverName = NAME_GameNetDriver) const;

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Engine/Engine.h"

Source

/Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp

Syntax

ENetMode GetNetMode
(
    const UWorld * World
) const

Remarks

Returns the current netmode Note: if there is no valid net driver, returns NM_StandAlone

Returns

current netmode

Parameters

Parameter

Description

NetDriverName

Name of the net driver to get mode for

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