Skip to content

Some NetworkObjects do not despawn (get destroyed) on client while disabled on disconnect #3899

@Squashi11

Description

@Squashi11

Description

Some NetworkObjects do not despawn (get destroyed) on client while disabled on disconnect. The NetworkObjects stay spawned in client scene even when the host disconnects / client leaves

Reproduce Steps

  1. Spawn and disable a network object on client + host
  2. Disconnect client / host
  3. The NetworkObject stays on client even though the owner is server

Actual Outcome

NetworkObject stays spawned and disabled in client scene when host ends session

Expected Outcome

The GameObject should have been despawned and destroyed

Screenshots

(from client) the host disconnected and the NetworkObjects stayed on hierarchy spawned

Image Image Image

Environment

  • OS: Windows 11
  • Unity Version: 6000.3.11f1
  • Netcode Version: 2.10.0
  • Netcode Commit: ?
  • Netcode Topology: Host - Client

Additional Context

I can provide more logs if needed, but afaik we just spawn resources in our game and then disable them if they get destroyed (dont despawn for pooling) and then enable them again if the player refreshes the map

Metadata

Metadata

Assignees

No one assigned

    Labels

    stat:awaiting-responseAwaiting response from author. This label should be added manually.stat:awaiting-triageStatus - Awaiting triage from the Netcode team.type:bugBug Report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions