Version: 2017.3
public bool isConnected ;

Description

Returns true when Editor is connected to the player.