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 May 1, 2024
1 parent eb21383 commit a55aa3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions com.unity.netcode.gameobjects/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

Additional documentation and release notes are available at [Multiplayer Documentation](https://docs-multiplayer.unity3d.com).

## [Unreleased]

### Fixed

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

## [1.8.1] - 2024-02-05

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,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;
}
if (m_NetworkBehaviour.NetworkManager.ShutdownInProgress)
Expand Down

0 comments on commit a55aa3b

Please sign in to comment.