Delegate RpcExecutor.ExecuteDelegate
The reference to static burst-compatible method that is invoked when an rpc has been received. For example:
[BurstCompile(DisableDirectCall = true)]
[AOT.MonoPInvokeCallback(typeof(RpcExecutor.ExecuteDelegate))]
private static void InvokeExecute(ref RpcExecutor.Parameters parameters)
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public delegate void RpcExecutor.ExecuteDelegate(ref RpcExecutor.Parameters parameters)
Parameters
Type | Name | Description |
---|---|---|
RpcExecutor.Parameters | parameters |
Remarks
The DisableDirectCall = true
was necessary to workaround an issue with burst and function delegate.
If you are implementing your custom rpc serializer, please remember to disable the direct call.