public void DrawHeader(Rect headerRect) { m_BindingHierarchy.InitIfNeeded(headerRect, m_DataSource); try { GUILayout.BeginArea(headerRect); m_ScrollPosition = GUILayout.BeginScrollView(m_ScrollPosition, GUIStyle.none, GUI.skin.verticalScrollbar); m_BindingHierarchy.OnGUI(new Rect(0, 0, headerRect.width, headerRect.height)); GUILayout.EndScrollView(); GUILayout.EndArea(); } catch (Exception e) { Debug.LogException(e); } }
public void DrawHeader(Rect headerRect) { m_BindingHierarchy.InitIfNeeded(headerRect, m_DataSource, isNewSelection); try { GUILayout.BeginArea(headerRect); m_ScrollPosition = GUILayout.BeginScrollView(m_ScrollPosition, GUIStyle.none, GUI.skin.verticalScrollbar); m_BindingHierarchy.OnGUI(new Rect(0, 0, headerRect.width, headerRect.height)); if (m_BindingHierarchy.treeViewController != null) { m_BindingHierarchy.treeViewController.contextClickItemCallback = ContextClickItemCallback; } GUILayout.EndScrollView(); GUILayout.EndArea(); } catch (Exception e) { Debug.LogException(e); } }