void DrawAnchorsOnSceneView(SceneView sceneView) { if (!target || targets.Length > 1) { return; } if (!sceneView.drawGizmos || !EditorGUIUtility.IsGizmosAllowedForObject(target)) { return; } Graphic graphic = target as Graphic; RectTransform gui = graphic.rectTransform; Transform ownSpace = gui.transform; Rect rectInOwnSpace = gui.rect; Handles.color = Handles.UIColliderHandleColor; DrawRect(rectInOwnSpace, ownSpace, graphic.raycastPadding); }