Photon Fusion 2.1.1

RpcTargetAttribute Class Reference

RPC attribute used to indicate a specific target player for an RPC when sending from one player to another. RPC is sent to the server, and then is forwarded to the specified player. Usage: More...

Public Member Functions

 RpcTargetAttribute ()
 RPC Attribute constructor.

Detailed Description

RPC attribute used to indicate a specific target player for an RPC when sending from one player to another. RPC is sent to the server, and then is forwarded to the specified player. Usage:

| [Rpc]
| public void RpcFoo([RpcTarget] PlayerRef targetPlayer) { }
Represents a Fusion player.
Definition PlayerRef.cs:20