docs.unity3d.com
Search Results for

    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
    Assembly: Unity.NetCode.dll
    Syntax
    public delegate void RpcExecutor.ExecuteDelegate(ref RpcExecutor.Parameters parameters)
    Parameters
    Type Name Description
    RpcExecutor.Parameters parameters

    Parameters for custom rpc serializer

    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)