Example #1
0
        //
        private void ShowPublicTools()
        {
            GUILayout.Label("文件添加工具", GUIHelper.MakeHeader(30));
            GUILayout.Label("当前文件数量为" + pathList.Count);
            if (GUILayout.Button("更新本地资源列表", GUILayout.Width(200)))
            {
                ResourcesListGen.UpdateResourcesList();
            }
            EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("添加文件", GUILayout.Width(200)))
            {
                AddFile();
                hasExported = false;
            }

            if (GUILayout.Button("清空文件", GUILayout.Width(200)))
            {
                ClearFile();
                hasExported = false;
            }
            if (GUILayout.Button("显示文件目录", GUILayout.Width(200)))
            {
                ShowFiles();
            }
            EditorGUILayout.EndHorizontal();
        }
 public static void OnWillSaveAssets(string[] names)
 {
     foreach (string name in names)
     {
         if (name.EndsWith(".unity"))
         {
             ResourcesListGen.UpdateResourcesList();
             break;
         }
     }
 }
Example #3
0
 private static void GenAssetBundle()
 {
     ResourcesListGen.UpdateResourcesList();
     AssetBundleGen.CreateTargetFolder();
     AssetBundleGen.ExportBundle(pathList.ToArray(), PathConfig.bundleRootPath, true);
 }