docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IApprovalRpcCommand

    An interface which can be used to implement RPCs for use in the connection approval flow. Only IApprovalRpcCommand commands are allowed to be sent and received, while in Handshake and/or Approval states.
    Connection approval can be optionally required for all incoming connection on a server. The connection flow can only proceed when the server received an Approval RPC payload which it can validate. Approval tokens are game-specific, thus netcode expects user-code to add an ConnectionApproved to the connection entity, once a valid IApprovalRpcCommand has been received by the server.

    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    public interface IApprovalRpcCommand : IComponentData, IQueryTypeParameter
    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)