Exemplo n.º 1
0
        /// <summary>
        /// Handles the resize functionality of the split for a horizontal window
        /// </summary>
        private void ResizeVerticalSplit()
        {
            float height = GetConstrainedValue();

            Rect resizeHandleRect = new Rect(availableRect.x,
                                             height, availableRect.width, 2f);

            GUIExtensions.DrawHorizontalLine(resizeHandleRect, Color.gray);

            EditorGUIUtility.AddCursorRect(resizeHandleRect, MouseCursor.ResizeVertical);

            CheckIsResizing(resizeHandleRect, SplitDirection.Vertical);
        }