NetworkStatisticsToString
How do I use Network Statistics To String
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
961 | public static string NetworkStatisticsToString() | 1 |
43 | Debug.Log("SupportLogger " + PhotonNetwork.NetworkStatisticsToString()); | 2 |
File name: PhotonNetwork.cs
Copy
961 public static string NetworkStatisticsToString()
962 {
963 if (networkingPeer == null || offlineMode)
964 {
965 return "Offline or in OfflineMode. No VitalStats available.";
966 }
967
968 return networkingPeer.VitalStatsToString(false);
969 }
File name: SupportLogger.cs
Copy
39 public void LogStats()
40 {
41 if (this.LogTrafficStats)
42 {
43 Debug.Log("SupportLogger " + PhotonNetwork.NetworkStatisticsToString());
44 }
45 }
NetworkStatisticsToString 176 lượt xem
Gõ tìm kiếm nhanh...