UEngine::GetNetMode

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

Choose your operating system:

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

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