ResizeHandle() public method

public ResizeHandle ( Rect windowPosition, float minSize, float minRemainingSize, float resizerHeight ) : float
windowPosition UnityEngine.Rect
minSize float
minRemainingSize float
resizerHeight float
return float
コード例 #1
0
        // Resize the preview area
        void ResizeBottomPartOfWindow()
        {
            GUI.changed = false;

            // Handle preview size
            m_PreviewSize = m_PreviewResizer.ResizeHandle(position, kPreviewExpandedAreaHeight + kPreviewMargin * 2 - kResizerHeight, kMinTopSize + kResizerHeight, kResizerHeight) + kResizerHeight;
            m_TopSize     = position.height - m_PreviewSize;

            bool open = PreviewIsOpen();
            bool wide = PreviewIsWide();

            m_ShowOverlapPreview.target = open && !wide;
            m_ShowWidePreview.target    = open && wide;
        }