docs.unity.cn
    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
    Generated by DocFX
    on Wednesday, June 21, 2023