We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1e76dc commit fecfe20Copy full SHA for fecfe20
com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs
@@ -1742,7 +1742,7 @@ private void OnDestroy()
1742
// unloading of a scene which is done by the authority...
1743
if (gameObject != null && gameObject.scene.IsValid() && gameObject.scene.isLoaded)
1744
{
1745
- if (NetworkManager.LogLevel <= LogLevel.Error && gameObject != null && gameObject.scene.IsValid() && gameObject.scene.isLoaded)
+ if (NetworkManager.LogLevel <= LogLevel.Error)
1746
1747
if (NetworkManager.DistributedAuthorityMode)
1748
0 commit comments