Class ServerRpcAttribute
Marks a method as ServerRpc.
A ServerRpc marked method will be fired by a client but executed on the server.
Inherited Members
Namespace: MLAPI.Messaging
Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
Syntax
[AttributeUsage(AttributeTargets.Method)]
public class ServerRpcAttribute : RpcAttribute
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 |
|---|---|
| bool |