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);
}