public override void OnInspectorGUI() { DrawDefaultInspector(); BugReport myScript = (BugReport)target; EditorGUILayout.HelpBox("Use, optionally, to verify your connection in play mode", MessageType.Info); if (GUILayout.Button("Check Connection") && EditorApplication.isPlaying) { myScript.StartCoroutine(myScript.Start()); } }