Open Moe-Baker opened 1 week ago
@Moe-Baker Below is a replication of your steps using a generic project I use to run through issues: 3116_Replication.zip
You can find the code to check the client counts within the ExtendedNetworkManager.OnUpdateGUIConnected
method on line 261:
When using the above project, I am not seeing the same thing you are seeing.
It really depends upon when you are checking those values since one is updated upon the initial connection accepted message and then a second message is received very shortly after that (around 1/2 RTT to the service) which provides the rest of the client information.
You will need to update the Services information to point to your own organization and most likely want to create a new cloud project prior to testing:
Take a look at the attached project and let me know if that helps?
Description
Both
NetworkManager.ConnectedClients
&NetworkManager.ConnectedClientsList
are not updated on the NetworkManager's session owner client, and only updated on the non-session owner clients. WhileNetworkManager.ConnectedClientsIds
is updated accordingly on all clients.Reproduce Steps
Put
in any Update Loop and connect two clients together, the session owner will print "Connected Clients Count: 1 | 2 | 1" when both clients are connected.
Actual Outcome
It's broken.
Expected Outcome
It not being broken.
Environment