UEngine::HandleDisconnect

The proper way to disconnect a given World and NetDriver.

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

void HandleDisconnect
(
    UWorld * InWorld,
    UNetDriver * NetDriver
)

Remarks

The proper way to disconnect a given World and NetDriver. Travels world if necessary, cleans up pending connects if necessary.

Parameters

Parameter

Description

InWorld

The world being disconnected (might be nullptr in case of pending net dupl)

NetDriver

The net driver being disconnect (will be InWorld's net driver if there is a world)