Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkTransport.GetIncomingPacketCountForAllHosts

public static int GetIncomingPacketCountForAllHosts();

Returns

int Packets count received from start for all hosts.

Description

Returns how many packets have been received from start. (from NetworkTransport.Init call).

To define packet rate, you can call this function periodically.

Did you find this page useful? Please give it a rating: