예제 #1
0
        public static void ImportPackage(string packagePath, bool interactive)
        {
            string str;

            AssetsItem[] items = AssetServer.ImportPackageStep1(packagePath, out str);
            if (items != null)
            {
                if (interactive)
                {
                    PackageImport.ShowImportPackage(packagePath, items, str);
                }
                else
                {
                    AssetServer.ImportPackageStep2(items);
                }
            }
        }
예제 #2
0
        public static void ImportPackage(string packagePath, bool interactive)
        {
            string packageIconPath;

            AssetsItem[] array = AssetServer.ImportPackageStep1(packagePath, out packageIconPath);
            if (array == null)
            {
                return;
            }
            if (interactive)
            {
                PackageImport.ShowImportPackage(packagePath, array, packageIconPath);
            }
            else
            {
                AssetServer.ImportPackageStep2(array);
            }
        }
예제 #3
0
 private void BottomArea()
 {
     GUILayout.BeginVertical(PackageImport.ms_Constants.bottomBarBg, new GUILayoutOption[0]);
     GUILayout.Space(8f);
     GUILayout.BeginHorizontal(new GUILayoutOption[0]);
     GUILayout.Space(10f);
     if (GUILayout.Button(EditorGUIUtility.TextContent("All"), new GUILayoutOption[]
     {
         GUILayout.Width(50f)
     }))
     {
         this.m_Tree.SetAllEnabled(1);
     }
     if (GUILayout.Button(EditorGUIUtility.TextContent("None"), new GUILayoutOption[]
     {
         GUILayout.Width(50f)
     }))
     {
         this.m_Tree.SetAllEnabled(0);
     }
     GUILayout.FlexibleSpace();
     if (GUILayout.Button(EditorGUIUtility.TextContent("Cancel"), new GUILayoutOption[0]))
     {
         base.Close();
         GUIUtility.ExitGUI();
     }
     if (GUILayout.Button(EditorGUIUtility.TextContent("Import"), new GUILayoutOption[0]))
     {
         if (this.m_Assets != null)
         {
             AssetServer.ImportPackageStep2(this.m_Assets);
         }
         base.Close();
         GUIUtility.ExitGUI();
     }
     GUILayout.Space(10f);
     GUILayout.EndHorizontal();
     GUILayout.Space(5f);
     GUILayout.EndVertical();
 }