LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

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.