Class ServerRpcAttribute
Marks a method as ServerRpc.
A ServerRpc marked method will be fired by a client but executed on the server.
Implements
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
[AttributeUsage(AttributeTargets.Method)]
public class ServerRpcAttribute : RpcAttribute, _Attribute
Constructors
ServerRpcAttribute()
Declaration
public ServerRpcAttribute()
Fields
RequireOwnership
Declaration
public bool RequireOwnership
Field Value
Type | Description |
---|---|
bool |