docs.unity.cn
    Show / Hide Table of Contents

    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
    Syntax
    public delegate void 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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023