-
Notifications
You must be signed in to change notification settings - Fork 459
GetNetworkBehaviourAtOrderIndex is now internal in 2.x #3528
Copy link
Copy link
Closed
Labels
priority:highThis issue has high priority and we are focusing to resolve itThis issue has high priority and we are focusing to resolve itregressionThe issue is a regression (something that was working in previous version)The issue is a regression (something that was working in previous version)stat:importedStatus - Issue is tracked internally at UnityStatus - Issue is tracked internally at Unitytype:bugBug ReportBug Report
Metadata
Metadata
Assignees
Labels
priority:highThis issue has high priority and we are focusing to resolve itThis issue has high priority and we are focusing to resolve itregressionThe issue is a regression (something that was working in previous version)The issue is a regression (something that was working in previous version)stat:importedStatus - Issue is tracked internally at UnityStatus - Issue is tracked internally at Unitytype:bugBug ReportBug Report
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
The function GetNetworkBehaviourAtOrderIndex was public in NGO 1.x:
com.unity.netcode.gameobjects/com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs
Line 1611 in 7a81722
In 2.x, the same function is now internal:
com.unity.netcode.gameobjects/com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs
Line 2765 in 098e68e
I am using this function in my project for a custom generic NetworkBehaviourReference. My script is very similar to the one proposed in #2837.
Now the function is restricted, it prevent me to update to NGO 2.x.
GetNetworkBehaviourOrderIndexis public:com.unity.netcode.gameobjects/com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs
Line 2738 in 098e68e
It is unclear why
GetNetworkBehaviourAtOrderIndexhas been made internal? Was it intentionnal?I'm requesting this function to be made public again (see #2678 for the 1.x request). Since it's just a getter, I don't see anything preventing us to access it.