docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct DisconnectReasonEnumToString

    Convert disconnection reason error code into human readable error messages.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    [Obsolete("Use ToFixedString extension methods. (RemovedAfter Entities 2.0)", false)]
    public struct DisconnectReasonEnumToString

    Methods

    Convert(int)

    Translate the error code into a human friendly error message.

    Declaration
    public static FixedString32Bytes Convert(int index)
    Parameters
    Type Name Description
    int index

    The disconnect error reason

    Returns
    Type Description
    FixedString32Bytes

    A string with the error message

    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)