Photon Fusion 2.1.1

RpcInvokeContext(NetworkRunner runner, NetworkBehaviour target, int tick, PlayerRef source, PlayerRef targetPlayer, ReadOnlySpan< byte > payload, bool *validationResult, Type targetType=null) Struct Reference

Context passed to RpcInvokeDelegate. More...

Public Attributes

readonly ReadOnlySpan< byte > Payload = payload
 The data sent with the RPC.
readonly NetworkRunner Runner = runner
 The current runner.
readonly PlayerRef Source = source
 The player that sent the RPC.
readonly NetworkBehaviour TargetBehaviour = target
 Target NetworkBehaviour. Null for static RPCs.
readonly PlayerRef TargetPlayer = targetPlayer
 The player the RPC has been sent to (if targeted).
readonly Type TargetType = targetType
 Target type.
readonly int Tick = tick
 The tick the RPC has been sent with.

Properties

bool IsValidating [get]
 If true, this RPC is in validating mode.
RpcDataReader PayloadReader [get]
 Data reader.

Detailed Description

Context passed to RpcInvokeDelegate.