Photon Fusion 2.1.1

RpcInvokeInfo Struct Reference

May be used as an optional RpcAttribute return value. Contains meta data about the RPC send, such as failure to send reasons, culling, message size, etc. More...

Public Member Functions

override readonly string ToString ()
 Returns a string that represents the current RpcInvokeInfo.

Static Public Member Functions

static RpcInvokeInfo Create (RpcLocalInvokeResult local, RpcSendMessageResult remote, int payloadSize)

Public Attributes

RpcLocalInvokeResult LocalInvokeResult
 Represents the result of the local RPC invocation.
int PayloadSize
 Size of the RPC payload (in bytes).
RpcSendMessageResult SendMessageResult
 Represents the result of the RPC message send operation.

Properties

readonly RpcSendCullResult SendCullResult [get]
 Represents the result of the RPC message send operation.
readonly RpcSendResult SendResult [get]
 Contains detailed information about the RPC send operation result.

Detailed Description

May be used as an optional RpcAttribute return value. Contains meta data about the RPC send, such as failure to send reasons, culling, message size, etc.

Example:

| [Rpc]
| public RpcInvokeInfo RpcFoo(int value) {
| return default;
| }
|
| public override void FixedUpdateNetwork() {
| var info = RpcFoo();
| Debug.Log(info);
| }
May be used as an optional RpcAttribute return value. Contains meta data about the RPC send,...
Definition RpcInvokeInfo.cs:22

Member Function Documentation

◆ Create()

RpcInvokeInfo Create ( RpcLocalInvokeResult local,
RpcSendMessageResult remote,
int payloadSize )
static
Parameters
local
remote
payloadSize
Returns

Member Data Documentation

◆ PayloadSize

int PayloadSize

Size of the RPC payload (in bytes).

>