UEngine::CreateNamedNetDriver

Creates a [UNetDriver](API\Runtime\Engine\Engine\UNetDriver) and associates a name with it.

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

bool CreateNamedNetDriver
(
    UPendingNetGame * PendingNetGame,
    FName NetDriverName,
    FName NetDriverDefinition
)

Remarks

Creates a UNetDriver and associates a name with it.

Returns

True if the driver was created successfully, false if there was an error.

Parameters

Parameter

Description

PendingNetGame

the pending net game context

NetDriverName

The name to associate with the driver.

NetDriverDefinition

The name of the definition to use