Photon Fusion 2.0.4

Public Member Functions | List of all members
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...

Inherits Attribute.

Public Member Functions

 RpcTargetAttribute ()
 RPC Attribute constructor. More...
 

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) { }

Constructor & Destructor Documentation

◆ RpcTargetAttribute()

RPC Attribute constructor.