Skip to content

Commit a3db8b2

Browse files
style
further clarifying the change made here.
1 parent 8ece71d commit a3db8b2

File tree

1 file changed

+2
-1
lines changed
  • com.unity.netcode.gameobjects/Runtime/NetworkVariable/Collections

1 file changed

+2
-1
lines changed

com.unity.netcode.gameobjects/Runtime/NetworkVariable/Collections/NetworkList.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ internal override void OnSpawned()
6262
{
6363
// If we are dirty and have write permissions by the time the NetworkObject
6464
// is finished spawning (same frame), then go ahead and reset the dirty related
65-
// properties for NetworkList.
65+
// properties for NetworkList in the event user script has made changes when
66+
// spawning to prevent duplicate entries.
6667
if (IsDirty() && CanSend())
6768
{
6869
UpdateLastSentTime();

0 commit comments

Comments
 (0)