docs.unity3d.com
    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
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023