docs.unity3d.com
    Show / Hide Table of Contents

    Enum NetworkStreamDisconnectReason

    Namespace: Unity.NetCode
    Syntax
    public enum NetworkStreamDisconnectReason
    Remarks

    Maps directly to DisconnectReason, with NetCode specific additions.

    Fields

    Name Description Value
    ConnectionClose
    0
    Timeout
    1
    MaxConnectionAttempts
    2
    ClosedByRemote
    3
    BadProtocolVersion

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


    4
    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.


    5
    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