This version of Unity is unsupported.
Removed in version 2018.4.36

Network.GetAveragePing

Obsolete The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.

Declaration

public static int GetAveragePing(NetworkPlayer player);

Description

The last average ping time to the given player in milliseconds.

If the player can't be found -1 will be returned. Pings are automatically sent out every couple of seconds.