void OnSelectionChange() { if (!m_Initialized) { return; } var myTreeAsset = Selection.activeObject as QuestAsset; if (myTreeAsset != null && myTreeAsset != m_MyTreeAsset) { m_MyTreeAsset = myTreeAsset; m_TreeView.treeModel.SetData(GetData()); m_TreeView.Reload(); } }
void SetTreeAsset(QuestAsset myTreeAsset) { m_MyTreeAsset = myTreeAsset; m_Initialized = false; }