Struct RpcParams
Server-Side RPC
Can be used with any sever-side remote procedure call.
Inherited Members
Namespace: Unity.Netcode
Assembly: Unity.Netcode.Runtime.dll
Syntax
public struct RpcParams
  Remarks
Note: typically this is use primarily for the ServerRpcReceiveParams.
Fields
Receive
The client RPC receive parameters provides you with the sender's identifier.
Declaration
public RpcReceiveParams Receive
  Field Value
| Type | Description | 
|---|---|
| RpcReceiveParams | 
Send
The server RPC send parameters (currently a place holder).
Declaration
public RpcSendParams Send
  Field Value
| Type | Description | 
|---|---|
| RpcSendParams | 
Operators
implicit operator RpcParams(BaseRpcTarget)
Implicitly converts a BaseRpcTarget to RpcParams.
Declaration
public static implicit operator RpcParams(BaseRpcTarget target)
  Parameters
| Type | Name | Description | 
|---|---|---|
| BaseRpcTarget | target | The RPC target to convert.  | 
      
Returns
| Type | Description | 
|---|---|
| RpcParams | A new RpcParams instance with the specified target in its send parameters.  | 
      
implicit operator RpcParams(LocalDeferMode)
Implicitly converts a LocalDeferMode to RpcParams.
Declaration
public static implicit operator RpcParams(LocalDeferMode deferMode)
  Parameters
| Type | Name | Description | 
|---|---|---|
| LocalDeferMode | deferMode | The defer mode to convert.  | 
      
Returns
| Type | Description | 
|---|---|
| RpcParams | A new RpcParams instance with the specified defer mode in its send parameters.  | 
      
implicit operator RpcParams(RpcReceiveParams)
Implicitly converts RpcReceiveParams to RpcParams.
Declaration
public static implicit operator RpcParams(RpcReceiveParams receive)
  Parameters
| Type | Name | Description | 
|---|---|---|
| RpcReceiveParams | receive | The receive parameters to convert.  | 
      
Returns
| Type | Description | 
|---|---|
| RpcParams | A new RpcParams instance with the specified receive parameters.  | 
      
implicit operator RpcParams(RpcSendParams)
Implicitly converts RpcSendParams to RpcParams.
Declaration
public static implicit operator RpcParams(RpcSendParams send)
  Parameters
| Type | Name | Description | 
|---|---|---|
| RpcSendParams | send | The send parameters to convert.  | 
      
Returns
| Type | Description | 
|---|---|
| RpcParams | A new RpcParams instance with the specified send parameters.  |