Search Issue Tracker

Fixed

Fixed in 1.0.0-pre.7

Votes

2

Found in [Package]

1.0.0-pre.6

Issue ID

NCCBUG-142

Regression

No

NetworkObject is destroyed when NetworkManager Host is started and stopped 2 times

Package: Multiplayer Netcode for GameObjects

-

How to reproduce:
1. Open the attached project "NetworkBugProject.zip"
2. Open Assets/Scenes/SampleScene.unity
3. Enter Play Mode
4. Select DontDestroyOnLoad>NetworkManager in the Hierarchy window
5. Press "Start Host" in the Inspector window
6. Press "Stop Host"
7. Repeat steps 5-6

Expected results: NetworkObject is not destroyed
Actual results: NetworkObject is destroyed

Reproducible with: 1.0.0-pre.5, 1.0.0-pre.6 (2020.3.32f1, 2021.2.17f1, 2022.1.0b13, 2022.2.0a8)
Could not test with: 2019.4.37f1 (Netcode for GameObjects unavailable)

  1. Resolution Note (fix version 1.0.0-pre.7):

    This has been fixed in either

    https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/pull/1809
    https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/pull/1769

    I used the commit b5f4195c8ce26294ff6f29d9870e3d546628ff92 to verify it doesn't repro

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.