Skip to content

Commit b223d5f

Browse files
authored
feat: expose NetworkObject.GetNetworkBehaviourAtOrderIndex (#2724)
1 parent 1701474 commit b223d5f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

com.unity.netcode.gameobjects/CHANGELOG.md

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

1111
### Added
1212

13+
- exposed NetworkObject.GetNetworkBehaviourAtOrderIndex as a public API (#2724)
1314
- Added context menu tool that provides users with the ability to quickly update the GlobalObjectIdHash value for all in-scene placed prefab instances that were created prior to adding a NetworkObject component to it. (#2707)
1415
- Added methods NetworkManager.SetPeerMTU and NetworkManager.GetPeerMTU to be able to set MTU sizes per-peer (#2676)
1516
- Added `GenerateSerializationForGenericParameterAttribute`, which can be applied to user-created Network Variable types to ensure the codegen generates serialization for the generic types they wrap. (#2694)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ internal ushort GetNetworkBehaviourOrderIndex(NetworkBehaviour instance)
13551355
return 0;
13561356
}
13571357

1358-
internal NetworkBehaviour GetNetworkBehaviourAtOrderIndex(ushort index)
1358+
public NetworkBehaviour GetNetworkBehaviourAtOrderIndex(ushort index)
13591359
{
13601360
if (index >= ChildNetworkBehaviours.Count)
13611361
{

0 commit comments

Comments
 (0)