Ejemplo n.º 1
0
        void OnSelectionChange()
        {
            if (!m_Initialized)
            {
                return;
            }

            var myTreeAsset = Selection.activeObject as MyTreeAsset;

            if (myTreeAsset != null && myTreeAsset != m_MyTreeAsset)
            {
                m_MyTreeAsset = myTreeAsset;
                m_TreeView.treeModel.SetData(GetData());
                m_TreeView.Reload();
            }
        }
Ejemplo n.º 2
0
 void SetTreeAsset(MyTreeAsset myTreeAsset)
 {
     m_MyTreeAsset = myTreeAsset;
     m_Initialized = false;
 }