Version: 2017.2
public bool isConnected ;

Description

Returns true when Editor is connected to the player.