Skip to main content

Unity.Netcode.ServerRpcAttribute

Marks a method as ServerRpc.

A ServerRpc marked method will be fired by a client but executed on the server.

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Implements#

System.Runtime.InteropServices._Attribute

Inherited Members#

RpcAttribute.Delivery

Attribute.Equals(Object)

Attribute.GetCustomAttribute(Assembly, Type)

Attribute.GetCustomAttribute(Assembly, Type, Boolean)

Attribute.GetCustomAttribute(MemberInfo, Type)

Attribute.GetCustomAttribute(MemberInfo, Type, Boolean)

Attribute.GetCustomAttribute(Module, Type)

Attribute.GetCustomAttribute(Module, Type, Boolean)

Attribute.GetCustomAttribute(ParameterInfo, Type)

Attribute.GetCustomAttribute(ParameterInfo, Type, Boolean)

Attribute.GetCustomAttributes(Assembly)

Attribute.GetCustomAttributes(Assembly, Boolean)

Attribute.GetCustomAttributes(Assembly, Type)

Attribute.GetCustomAttributes(Assembly, Type, Boolean)

Attribute.GetCustomAttributes(MemberInfo)

Attribute.GetCustomAttributes(MemberInfo, Boolean)

Attribute.GetCustomAttributes(MemberInfo, Type)

Attribute.GetCustomAttributes(MemberInfo, Type, Boolean)

Attribute.GetCustomAttributes(Module)

Attribute.GetCustomAttributes(Module, Boolean)

Attribute.GetCustomAttributes(Module, Type)

Attribute.GetCustomAttributes(Module, Type, Boolean)

Attribute.GetCustomAttributes(ParameterInfo)

Attribute.GetCustomAttributes(ParameterInfo, Boolean)

Attribute.GetCustomAttributes(ParameterInfo, Type)

Attribute.GetCustomAttributes(ParameterInfo, Type, Boolean)

Attribute.GetHashCode()

Attribute.IsDefaultAttribute()

Attribute.IsDefined(Assembly, Type)

Attribute.IsDefined(Assembly, Type, Boolean)

Attribute.IsDefined(MemberInfo, Type)

Attribute.IsDefined(MemberInfo, Type, Boolean)

Attribute.IsDefined(Module, Type)

Attribute.IsDefined(Module, Type, Boolean)

Attribute.IsDefined(ParameterInfo, Type)

Attribute.IsDefined(ParameterInfo, Type, Boolean)

Attribute.Match(Object)

Attribute._Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Attribute._Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

Attribute._Attribute.GetTypeInfoCount(UInt32)

Attribute._Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Attribute.TypeId

Object.Equals(Object, Object)

Object.GetType()

Object.MemberwiseClone()

Object.ReferenceEquals(Object, Object)

Object.ToString()

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
[AttributeUsage(AttributeTargets.Method)]
public class ServerRpcAttribute : RpcAttribute, _Attribute

RequireOwnership#

Whether or not the ServerRpc should only be run if executed by the owner of the object

Declaration#

public bool RequireOwnership

Field Value#

TypeDescription
System.Boolean

Implements#

System.Runtime.InteropServices._Attribute