UClientUnitTest::SendUnitRPCChecked

As above, except executes a static [UFunction](API\Runtime\CoreUObject\UObject\UFunction) in the unit test (must be prefixed with UnitTestServer_), on the unit test server, allowing unit tests to define and contain their own 'pseudo'-RPC's.

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/ClientUnitTest.h

Include

#include "ClientUnitTest.h"

Syntax

bool SendUnitRPCChecked
(
    FString RPCName
)

Remarks

As above, except executes a static UFunction in the unit test (must be prefixed with UnitTestServer_), on the unit test server, allowing unit tests to define and contain their own 'pseudo'-RPC's.

Functions that you want to call, must match this function template:

static void UnitTestServer_Func(ANUTActor* InNUTActor);

Returns

Whether or not the pseudo-RPC was sent successfully

Parameters

Parameter

Description

RPCName

The name of the pseudo-RPC, which should be executed

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