Closed
Description
Describe the bug
OnNetworkDespawn is not called on network objects when the network manager shuts down.
To Reproduce
Steps to reproduce the behavior:
- Start a host
- Spawn a networked gameobject
- Shut down the NetworkManager
- 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