Skip to content

Commit

Permalink
fix: remove anoying warning when using NetworkList offline (Unity-Tec…
Browse files Browse the repository at this point in the history
  • Loading branch information
PitouGames committed Apr 30, 2023
1 parent 4afa1f1 commit a7ab94f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion com.unity.netcode.gameobjects/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Additional documentation and release notes are available at [Multiplayer Documen

### Fixed

- Removed anoying warnings when using NetworkVariable in offline mode. (#2279)
- Removed anoying warnings when using `NetworkList` in offline mode. (#2279)
- Removed anoying warnings when using `NetworkVariable` in offline mode. (#2279)

## [1.5.2] - 2023-07-24

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using Unity.Collections;
using UnityEngine;

namespace Unity.Netcode
{
Expand Down Expand Up @@ -70,8 +69,6 @@ internal void MarkNetworkObjectDirty()
{
if (m_NetworkBehaviour == null)
{
Debug.LogWarning($"NetworkList is written to, but doesn't know its NetworkBehaviour yet. " +
"Are you modifying a NetworkList before the NetworkObject is spawned?");
return;
}

Expand Down

0 comments on commit a7ab94f

Please sign in to comment.