docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum NetworkStreamDisconnectReason

    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    public enum NetworkStreamDisconnectReason
    Remarks

    Maps directly to DisconnectReason, with NetCode specific additions.

    Fields

    Name Description
    ApprovalFailure

    NetCode-specific: Denotes that the client has failed approval, by inputting invalid credentials.

    ApprovalTimeout

    NetCode-specific: Denotes that the client has failed to be approved by the server within the given HandshakeApprovalTimeoutMS.

    AuthenticationFailure
    BadProtocolVersion

    NetCode-specific: Denotes that we've detected an unknown or unexpected ghost hash, implying that this is an incompatible server/client pair.

    ClosedByRemote
    ConnectionClose
    HandshakeTimeout

    NetCode-specific: Denotes that the client's internal netcode logic has failed to send the RequestProtocolVersionHandshake to the server within the given HandshakeApprovalTimeoutMS.

    InvalidRpc

    NetCode-specific: Denotes that we've detected a hash miss-match in an RPC, or an unknown RPC. Implies that this is an incompatible server/client pair.

    MaxConnectionAttempts
    ProtocolError
    Timeout

    Extension Methods

    NetCodeUtils.ToFixedString(NetworkStreamDisconnectReason)
    In This Article
    Back to top
    Copyright © 2026 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)