Struct DisconnectReasonEnumToString
Convert disconnection reason error code into human readable error messages.
Inherited Members
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 |