Skip to content

Commit 9246d94

Browse files
fix: Remove in-editor NetworkVariable console log messages (#2562)
* Update NetworkBehaviourEditor.cs Removing additional debug output that does not need to be spamming the console * Update CHANGELOG.md * Style
1 parent 688640c commit 9246d94

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

com.unity.netcode.gameobjects/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
1212

1313
### Fixed
1414

15+
- Fixed issue where some temporary debug console logging was left in a merged PR. (#2562)
1516
- Fixed the "Generate Default Network Prefabs List" setting not loading correctly and always reverting to being checked. (#2545)
1617
- Fixed missing value on `NetworkListEvent` for `EventType.RemoveAt` events. (#2542,#2543)
1718
- Fixed the inspector throwing exceptions when attempting to render `NetworkVariable`s of enum types. (#2529)

com.unity.netcode.gameobjects/Editor/NetworkBehaviourEditor.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ private void Init(MonoScript script)
4141
{
4242
m_NetworkVariableNames.Add(ObjectNames.NicifyVariableName(fields[i].Name));
4343
m_NetworkVariableFields.Add(ObjectNames.NicifyVariableName(fields[i].Name), fields[i]);
44-
Debug.Log($"Adding NetworkVariable {fields[i].Name}");
4544
}
4645
if (ft.IsGenericType && ft.GetGenericTypeDefinition() == typeof(NetworkList<>) && !fields[i].IsDefined(typeof(HideInInspector), true))
4746
{
4847
m_NetworkVariableNames.Add(ObjectNames.NicifyVariableName(fields[i].Name));
4948
m_NetworkVariableFields.Add(ObjectNames.NicifyVariableName(fields[i].Name), fields[i]);
50-
Debug.Log($"Adding NetworkList {fields[i].Name}");
5149
}
5250
}
5351
}

0 commit comments

Comments
 (0)