Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UEngine
Description
The proper way to disconnect a given World and NetDriver. Travels world if necessary, cleans up pending connects if necessary.
| Name | HandleDisconnect |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Engine.h |
| Include Path | #include "Engine/Engine.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp |
void HandleDisconnect
(
UWorld * InWorld,
UNetDriver * NetDriver
)
Parameters
| Name | Remarks |
|---|---|
| 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) |