Version: 2017.1
public bool isConnected ;

Description

Returns true when Editor is connected to the player.