Class CustomMessageAttribute
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.Struct)]
public class CustomMessageAttribute : Attribute
Constructors
CustomMessageAttribute(SendDirection)
Marks a struct as a custom message that can be sent in the given direction.
Declaration
public CustomMessageAttribute(SendDirection sendDirection = SendDirection.Undefined)
Parameters
| Type | Name | Description |
|---|---|---|
| SendDirection | sendDirection | The direction in which this remote is valid to send. |