We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ece71d commit a3db8b2Copy full SHA for a3db8b2
1 file changed
com.unity.netcode.gameobjects/Runtime/NetworkVariable/Collections/NetworkList.cs
@@ -62,7 +62,8 @@ internal override void OnSpawned()
62
{
63
// If we are dirty and have write permissions by the time the NetworkObject
64
// is finished spawning (same frame), then go ahead and reset the dirty related
65
- // properties for NetworkList.
+ // properties for NetworkList in the event user script has made changes when
66
+ // spawning to prevent duplicate entries.
67
if (IsDirty() && CanSend())
68
69
UpdateLastSentTime();
0 commit comments