ArgumentNullException in NetworkTransform when destroying a scene with disabled NetworkTransform GameObjects #2772
Labels
priority:high
This issue has high priority and we are focusing to resolve it
stat:imported
Status - Issue is tracked internally at Unity
type:bug
Bug Report
When developing in the Editor we might have a scene additively loaded, but testing the "real" game workflow might mean we immediately destroy that additive scene and load some other scene when we press the Play button in the Editor.
Netcode 1.6.0
If I do that and destroy an additive scene that had disabled GameObjects which had NetworkTransform components I get the following error:
There may be a bug here to address inside of
UnregisterNamedMessageHandler
and/or there may be adjustments you want to make to detect and not fire offOnNetworkDespawn
in cases whenOnNetworkSpawn
has never fired.For now, I just am checking for an empty
m_MessageName
:The text was updated successfully, but these errors were encountered: