コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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);
            }
        }