Skip to content

Commit d4f59e7

Browse files
fix
This resolves a regression bug where NetworkObject.GetNetworkBehaviourAtOrderIndex was converted from public to internal during the original v2.0.0-pre branch creation.
1 parent 6b9f9b5 commit d4f59e7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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)