UnityEditor.AudioMixerSnapshotListView.GetTotalHeight C# (CSharp) Method

GetTotalHeight() public method

public GetTotalHeight ( ) : float
return float
        public float GetTotalHeight()
        {
            if (this.m_Controller == null)
            {
                return 0f;
            }
            return (this.m_ReorderableListWithRenameAndScrollView.list.GetHeight() + 22f);
        }

Usage Example

示例#1
0
        float GetHeightOfSection(SectionType sectionType)
        {
            switch (sectionType)
            {
            case SectionType.MixerTree: return(m_MixersTree.GetTotalHeight());

            case SectionType.SnapshotList: return(m_SnapshotListView.GetTotalHeight());

            case SectionType.GroupTree: return(m_GroupTree.GetTotalHeight());

            case SectionType.ViewList: return(m_GroupViews.GetTotalHeight());

            default:
                Debug.LogError("Unhandled enum value");
                break;
            }
            return(0f);
        }