Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

Ping

Namespace: UnityEngine

Description

Ping any given IP address (given in dot notation).

The ping operation is asynchronous and a ping object can be polled for status using Ping.isDone. When a response is received it is in Ping.time.

Variables

ip The IP target of the ping.
isDone Has the ping function completed?
time This property contains the ping time result after isDone returns true.

Constructors

Ping Perform a ping to the supplied target IP address.