Skip to content

NetworkManager.DisconnectReason is always Empty String #2389

@Reag

Description

@Reag

Description

The variable NetworkManager.DisconnectReason is always empty. The code that sets this variable in the NetworkManager is never activated with UTP.

Reproduce Steps

  1. Build a new project with netcode
  2. Place a break point on line 47 of DisconnectReasonMessage.cs, the only function that accesses NetworkManager.DisconnectReason
  3. Perform various Disconnects (connection interruption, timeout, client stopped, ect)

Actual Outcome

Breakpoint that sets the DisconnectReason is never tripped, leaving the variable as empty string

Expected Outcome

The variable will get some information about why the server disconnected the client

Environment

  • OS: Windows 12
  • Unity Version: 2021.3.12f1
  • Netcode Version: 1.2.0
  • Unity Transport Version: 1.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:lowThis issue has low priority and will take some time to be resolvedstat:importStatus - Issue is going to be saved internallytype:featureNew feature, request or improvement

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions