Ejemplo n.º 1
0
        protected override void OnCreate()
        {
            base.OnCreate();

            m_ConnectionsView = CreateView <ConnectionsView>();
            m_ConnectionsView.editorPrefsKey   = GetPrefsKey(() => m_ConnectionsView);
            m_ConnectionsView.showReferencedBy = false;

            // The list at the left that contains all native objects
            m_StaticFieldsControl = new StaticFieldsControl(window, GetPrefsKey(() => m_StaticFieldsControl), new TreeViewState());
            m_StaticFieldsControl.SetTree(m_StaticFieldsControl.BuildTree(snapshot));
            m_StaticFieldsControl.onTypeSelected += OnListViewTypeSelected;

            m_SearchField = new HeSearchField(window);
            m_SearchField.downOrUpArrowKeyPressed += m_StaticFieldsControl.SetFocusAndEnsureSelectedItem;

            m_PropertyGridView = CreateView <PropertyGridView>();
            m_PropertyGridView.editorPrefsKey = GetPrefsKey(() => m_PropertyGridView);

            m_SplitterHorz = EditorPrefs.GetFloat(GetPrefsKey(() => m_SplitterHorz), m_SplitterHorz);
            m_SplitterVert = EditorPrefs.GetFloat(GetPrefsKey(() => m_SplitterVert), m_SplitterVert);
        }