示例#1
0
 public static void OpenUI()
 {
     if (wnd == null)
     {
         wnd = GetWindow <VFSAnalysisIMGUI>();
         wnd.titleContent = new GUIContent("VFS Analysis");
         //wnd.minSize = new Vector2(424, 599);
         //wnd.maxSize = new Vector2(425, 600);
         //Rect pos = wnd.position;
         //pos.width = 425;
         //pos.height = 600;
         //wnd.position = pos;
     }
     else
     {
         wnd.Show();
         wnd.Focus();
     }
 }
示例#2
0
 private void OnDestroy()
 {
     wnd = null;
     if (m_TreeView_AssetBundle != null)
     {
         if (m_TreeView_AssetBundle.Dict_Assets_id != null)
         {
             m_TreeView_AssetBundle.Dict_Assets_id.Clear();
         }
         if (m_TreeView_AssetBundle.Dict_Bundle_id != null)
         {
             m_TreeView_AssetBundle.Dict_Bundle_id.Clear();
         }
     }
     if (m_TreeView_EditorAsset != null)
     {
         if (m_TreeView_EditorAsset.Dict_Assets_id != null)
         {
             m_TreeView_EditorAsset.Dict_Assets_id.Clear();
         }
     }
 }