UnityEditor.AudioMixerExposedParameterView.CalcSize C# (CSharp) Method

CalcSize() public method

public CalcSize ( ) : Vector2
return Vector2
        public Vector2 CalcSize()
        {
            float x = 0f;
            for (int i = 0; i < this.m_ReorderableListWithRenameAndScrollView.list.count; i++)
            {
                float num3 = this.WidthOfRow(i, this.m_ReorderableListWithRenameAndScrollView.elementStyle, this.m_ReorderableListWithRenameAndScrollView.elementStyleRightAligned);
                if (num3 > x)
                {
                    x = num3;
                }
            }
            return new Vector2(x, this.height);
        }

Usage Example

        public override Vector2 GetWindowSize()
        {
            Vector2 size = m_ExposedParametersView.CalcSize();

            size.x = Math.Max(size.x, 125f);
            size.y = Math.Max(size.y, 23f);
            return(size);
        }