UNetDriver::SetReplicationDriver

Explicitly sets the ReplicationDriver instance (you instantiate it and initialize it).

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Engine/NetDriver.h"

Source

/Engine/Source/Runtime/Engine/Private/NetworkDriver.cpp

Syntax

void SetReplicationDriver
(
    UReplicationDriver * NewReplicationManager
)

Remarks

Explicitly sets the ReplicationDriver instance (you instantiate it and initialize it). Shouldn't be done during gameplay: ok to do in GameMode startup or via console commands for testing. Existing ReplicationDriver (if set) is destroyed when this is called.

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