Skip to content

Commit

Permalink
fix: remove anoying warning when using NetworkVariable as offline var…
Browse files Browse the repository at this point in the history
  • Loading branch information
PitouGames committed Nov 13, 2023
1 parent 4f1603a commit 92260db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions com.unity.netcode.gameobjects/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
### Fixed

- Fixed a bug where having a class with Rpcs that inherits from a class without Rpcs that inherits from NetworkVariable would cause a compile error. (#2751)
- Removed anoying warnings when using NetworkVariable in offline mode. (#2279)

## [1.7.0] - 2023-10-11

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using UnityEngine;

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

Expand Down

0 comments on commit 92260db

Please sign in to comment.