PhotonView.RpcSecure C# (CSharp) Method

RpcSecure() public method

Call a RPC method of this GameObject on remote clients of this room (or on all, inclunding this client).
[Remote Procedure Calls](@ref rpcManual) are an essential tool in making multiplayer games with PUN. It enables you to make every client in a room call a specific method. This method allows you to make an RPC calls on a specific player's client. Of course, calls are affected by this client's lag and that of remote clients. Each call automatically is routed to the same PhotonView (and GameObject) that was used on the originating client. See: [Remote Procedure Calls](@ref rpcManual).
public RpcSecure ( string methodName, PhotonPlayer, targetPlayer, bool encrypt ) : void
methodName string The name of a fitting method that was has the RPC attribute.
targetPlayer PhotonPlayer, The group of targets and the way the RPC gets sent.
encrypt bool
return void
    public void RpcSecure(string methodName, PhotonPlayer targetPlayer, bool encrypt, params object[] parameters)
    {
        PhotonNetwork.RPC(this, methodName, targetPlayer, encrypt, parameters);
    }

Same methods

PhotonView::RpcSecure ( string methodName, PhotonTargets target, bool encrypt ) : void