Class RpcAttribute
Represents the common base class for Rpc attributes.
Inherited Members
Namespace: Unity.Netcode
Assembly: Unity.Netcode.Runtime.dll
Syntax
[AttributeUsage(AttributeTargets.Method)]
public class RpcAttribute : Attribute
  Constructors
RpcAttribute(SendTo)
Initializes a new instance of the RpcAttribute with the specified target.
Declaration
public RpcAttribute(SendTo target)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SendTo | target | The target for this RPC  | 
      
Fields
AllowTargetOverride
When true, allows the RPC target to be overridden at runtime.
Declaration
public bool AllowTargetOverride
  Field Value
| Type | Description | 
|---|---|
| bool | 
DeferLocal
When true, local execution of the RPC is deferred until the next network tick.
Declaration
public bool DeferLocal
  Field Value
| Type | Description | 
|---|---|
| bool | 
Delivery
Type of RPC delivery method.
Declaration
public RpcDelivery Delivery
  Field Value
| Type | Description | 
|---|---|
| RpcDelivery | 
RequireOwnership
When true, only the owner of the object can execute this RPC.
Declaration
public bool RequireOwnership
  Field Value
| Type | Description | 
|---|---|
| bool |