You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: com.unity.netcode.gameobjects/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
21
21
- Fixed issue where changing ownership would mark every `NetworkVariable` dirty. Now, it will only mark any `NetworkVariable` with owner read permissions as dirty and will send/flush any pending updates to all clients prior to sending the change in ownership message. (#3126)
22
22
- Fixed issue with `NetworkVariable` collections where transferring ownership to another client would not update the new owner's previous value to the most current value which could cause the last/previous added value to be detected as a change when adding or removing an entry (as long as the entry removed was not the last/previously added value). (#3126)
23
23
- Fixed issue where a client (or server) with no write permissions for a `NetworkVariable` using a standard .NET collection type could still modify the collection which could cause various issues depending upon the modification and collection type. (#3126)
24
+
- Fixed issue where `NetworkAnimator` would statically allocate write buffer space for `Animator` parameters that could cause a write error if the number of parameters exceeded the space allocated. (#3124)
24
25
- Fixed issue with the in-scene network prefab instance update menu tool where it was not properly updating scenes when invoked on the root prefab instance. (#3084)
25
26
- Fixed issue where `NetworkAnimator` would send updates to non-observer clients. (#3058)
26
27
- Fixed issue where an exception could occur when receiving a universal RPC for a `NetworkObject` that has been despawned. (#3055)
@@ -560,6 +556,14 @@ public override void OnDestroy()
560
556
561
557
privatevoidAwake()
562
558
{
559
+
if(!m_Animator)
560
+
{
561
+
#if !UNITY_EDITOR
562
+
Debug.LogError($"{nameof(NetworkAnimator)}{name} does not have an {nameof(UnityEngine.Animator)} assigned to it. The {nameof(NetworkAnimator)} will not initialize properly.");
563
+
#endif
564
+
return;
565
+
}
566
+
563
567
intlayers=m_Animator.layerCount;
564
568
// Initializing the below arrays for everyone handles an issue
565
569
// when running in owner authoritative mode and the owner changes.
@@ -589,6 +593,9 @@ private void Awake()
589
593
}
590
594
}
591
595
596
+
// The total initialization size calculated for the m_ParameterWriter write buffer.
597
+
vartotalParameterSize=sizeof(uint);
598
+
592
599
// Build our reference parameter values to detect when they change
0 commit comments