public void DrawConnectionPoint(EditorObjectConnectionType type, ref bool connectionBool) { _style = new GUIStyle(GUI.skin.button); ConnectionType = type; GUI.color = type.ConnectionColor; connectionBool = GUILayout.Toggle(connectionBool, "", _style, GUILayout.Width(_width)); GUI.color = Color.white; HandleUtility.Repaint(); _rect = GUILayoutUtility.GetLastRect(); }