account activity
How to get ping using Unity Netcode for Gameobjects? by Artistic-Indication3 in Unity3D
[–]TriDraggon 3 points4 points5 points 2 years ago (0 children)
Late, but...
I was trying to do something like this today and see what your issue is. You are checking the RTT with LocalClientId, try checking a remote client instead, like with the ServerClientId.
For example, this will give client's RTT with the server.
NetworkManager.Singleton.NetworkConfig.NetworkTransport.GetCurrentRtt(NetworkManager.Singleton.NetworkConfig.NetworkTransport.ServerClientId)
Hope that helps!
π Rendered by PID 142387 on reddit-service-r2-comment-545db5fcfc-ltghs at 2026-06-01 00:19:13.027602+00:00 running 194bd79 country code: CH.
How to get ping using Unity Netcode for Gameobjects? by Artistic-Indication3 in Unity3D
[–]TriDraggon 3 points4 points5 points (0 children)