Skip to content

OnNetworkDespawn is not called on some networked game objects when the network manager is shut down #1353

Closed
@LPLafontaineB

Description

@LPLafontaineB

Describe the bug
OnNetworkDespawn is not called on network objects when the network manager shuts down.

To Reproduce
Steps to reproduce the behavior:

  1. Start a host
  2. Spawn a networked gameobject
  3. Shut down the NetworkManager
  4. See that the object's OnNetworkDespawn event is not called.

Actual outcome
OnNetworkDespawn is not called on network objects after calling NetworkManager.Shutdown

Expected outcome
OnNetworkDespawn is called on all networked game objects

Environment (please complete the following information):

  • OS: Windows 10
  • Unity Version: 2020.3.13f1
  • Netcode Version: 1.0.0-pre.2

Additional context
Issue encountered while working on this PR for the Boss Room sample

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions