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 Aug 18, 2024
1 parent a342c8d commit 7c85d66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions com.unity.netcode.gameobjects/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

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.10.0] - 2024-07-22

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,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 7c85d66

Please sign in to comment.