Class RPCAttribute
Add to a struct, static or ghost behaviour method to turn it into an RPC
Inherited Members
Namespace: Unity.Netcode
Assembly: Unity.NetCode.dll
Syntax
[AttributeUsage(AttributeTargets.Method)]
public class RPCAttribute : Attribute
Constructors
RPCAttribute(SendDirection)
Marks a method as an RPC that can be sent in the given direction.
Declaration
public RPCAttribute(SendDirection sendDirection = SendDirection.Undefined)
Parameters
| Type | Name | Description |
|---|---|---|
| SendDirection | sendDirection | The direction in which this remote is valid to send. |