UMinimalClient::SendRPCChecked

Sends the specified RPC for the specified actor, and verifies that the RPC was sent (triggering RPCFailureDel if not)

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

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

Include

#include "MinimalClient.h"

Source

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Private/MinimalClient.cpp

Syntax

bool SendRPCChecked
(
    UObject * Target,
    const TCHAR * FunctionName,
    void * Parms,
    int16 ParmsSize,
    int16 ParmsSizeCorrection
)

Remarks

Sends the specified RPC for the specified actor, and verifies that the RPC was sent (triggering RPCFailureDel if not)

Returns

Whether or not the RPC was sent successfully

Parameters

Parameter

Description

Target

The Actor or ActorComponent which will send the RPC

FunctionName

The name of the RPC

Parms

The RPC parameters (same as would be specified to ProcessEvent)

ParmsSize

The size of the RPC parameters, for verifying binary compatibility

ParmsSizeCorrection

Some parameters are compressed to a different size. Verify Parms matches, and use this to correct.

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