FirstGearGames / FishNet

FishNet: Unity Networking Evolved.
Other
1.39k stars 150 forks source link

Incorrect invocation of NetworkBehaviour.OnStop<X> on Host #652

Closed cameronoltmann closed 6 months ago

cameronoltmann commented 7 months ago

Important

If General, Description, and Replication are not completed the issue will be closed immediately.

General Unity version: 2023.1.10f1 Fish-Networking version: 4.2.0 Pro (Saw it for the first time in 4.1.4) Discord link: https://discord.com/channels/424284635074134018/1229607600316747847

Description Incorrect invocation of NetworkBehaviour.OnStop on Host.

If Nob is despawned via Destroy():

If Nob is despawned via Despawn():

Replication Steps to reproduce the behavior:

Expected behavior Objects both despawn, invoking OnStopServer, OnStopClient, OnStopNetwork in order, and correctly unsubscribing from TimeManager.OnTick.

Screenshots If applicable, add screenshots to help explain your problem.

OnStopCallbackTest.zip

FirstGearGames commented 6 months ago

Confirmed.

FirstGearGames commented 6 months ago

Resolved in 4.3.0, thank you so much for the test project! image