NUTNet

Netcode based utility functions

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/Net/NUTUtilNet.h

Include

#include "Net/NUTUtilNet.h"

Syntax

struct NUTNet

Remarks

Netcode based utility functions

Functions

Name Description

Public function Static

void

 

CleanupUnitTestWorlds()

Cleans up unit test worlds queued for cleanup

Public function Static

UWorld *

 

CreateUnitTestWorld

(
    bool bHookTick
)

Creates a barebones/minimal UWorld, for setting up minimal client connections, and as a container for objects in the unit test commandlet

Public function Static

void

 

HandleBeaconReplicate

(
    AActor* InBeacon,
    UNetConnection* InConnection
)

Handles setting up the client beacon once it is replicated, so that it can properly send RPC's (normally the serverside client beacon links up with the pre-existing beacon on the clientside, but with unit tests there is no pre-existing clientside beacon)

Public function Static

bool

 

IsUnitTestWorld

(
    UWorld* InWorld
)

Returns true, if the specified world is a unit test world

Public function Static

void

 

MarkUnitTestWorldForCleanup

(
    UWorld* CleanupWorld,
    bool bImmediate
)

Marks the specified unit test world for cleanup

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