Class ServerRpcAttribute
Marks a method as ServerRpc.
A ServerRpc marked method will be fired by a client but executed on the server.
Inherited Members
      System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfoCount(System.UInt32)
    
    
      System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
    
    
      System.Attribute.System.Runtime.InteropServices._Attribute.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
    
    
      System.Attribute.System.Runtime.InteropServices._Attribute.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
    
    
    
    
    
    
    
  Namespace: Unity.Netcode
Syntax
[AttributeUsage(AttributeTargets.Method)]
public class ServerRpcAttribute : RpcAttribute, _Attribute
  Fields
RequireOwnership
Whether or not the ServerRpc should only be run if executed by the owner of the object
Declaration
public bool RequireOwnership
  Field Value
| Type | Description | 
|---|---|
| Boolean |