Skip to content

Commit aa889f3

Browse files
Merge develop-2.0.0 into chore/2.x/update_yamato_pr_trigger
2 parents cdf25e6 + 5da3ff4 commit aa889f3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

com.unity.netcode.gameobjects/CHANGELOG.md

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

1717
### Fixed
1818

19+
- Fixed regression issue in v2.x where `NetworkObject.GetNetworkBehaviourAtOrderIndex` was converted from public to internal. (#3541)
1920
- Fixed ensuring OnValueChanged callback is still triggered on the authority when a collection changes and then reverts to the previous value in the same frame. (#3539)
2021
- Fixed synchronizing the destroyGameObject parameter to clients for InScenePlaced network objects. (#3514)
2122
- Fixed distributed authority related issue where enabling the `NetworkObject.DestroyWithScene` would cause errors when a destroying non-authority instances due to loading (single mode) or unloading scene events. (#3500)

com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2762,7 +2762,12 @@ public ushort GetNetworkBehaviourOrderIndex(NetworkBehaviour instance)
27622762
return 0;
27632763
}
27642764

2765-
internal NetworkBehaviour GetNetworkBehaviourAtOrderIndex(ushort index)
2765+
/// <summary>
2766+
/// Returns the <see cref="NetworkBehaviour"/> at the ordered index value which can be obtained using <see cref="GetNetworkBehaviourOrderIndex"/>.
2767+
/// </summary>
2768+
/// <param name="index">The order index value of the <see cref="NetworkBehaviour"/>.</param>
2769+
/// <returns>The <see cref="NetworkBehaviour"/> at the ordered index value or null if it does not exist.</returns>
2770+
public NetworkBehaviour GetNetworkBehaviourAtOrderIndex(ushort index)
27662771
{
27672772
if (index >= ChildNetworkBehaviours.Count)
27682773
{

0 commit comments

Comments
 (0)