private void OnDestroy() { m_abEditor.OnDestory(); m_abEditor = null; WindowInstance = null; selectObj = null; OrganizationTreeViewState = null; OrganizationTreeView = null; Debug.Log("OnDestroy"); }
private void Awake() { m_abEditor = new ABInspectorEditor(); m_abEditor.Init(); OrganizationTreeViewState = new TreeViewState(); var headerState = ABInspectorOrganizationTreeView.CreateDefaultMultiColumnHeaderState(); OrganizationTreeView = new ABInspectorOrganizationTreeView(OrganizationTreeViewState, headerState); OrganizationTreeView.GetABInspectorItemDataByGUID = m_abEditor.GetItemByGUID; OrganizationTreeView.Reload(); Debug.Log("Awake"); }