Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

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

NetworkTransport.GetNetworkLostPacketNum

public static int GetNetworkLostPacketNum(int hostId, int connectionId, out byte error);

Parameters

hostId Id of udp socket used to.
connectionId Id of connection.
error Possible error.

Description

Return total number of packets has been lost from start.