void OnGUI()
        {
            scrollPos = EditorGUILayout.BeginScrollView(scrollPos);


            OnGUISelectLanguage();

            EditorGUILayout.LabelField("Platform Select");
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.LabelField("", GUILayout.Width(Space));
            currentTarget = EditorGUILayout.Popup(currentTarget, targetList);
            EditorGUILayout.EndHorizontal();

            EditorGUILayout.Space();
            OnGUIExcludeList();
            EditorGUILayout.Space();
            // all
            OnGUIReportGroup("All Report",
                             () =>
            {
                TextureReporter.CreateReport(targetList[currentTarget], excludeList);
                ModelReporter.CreateReport(excludeList);
                AudioReporter.CreateReport(targetList[currentTarget], excludeList);
                AssetBundleReporter.CreateReport(false);
                ResourcesReporter.CreateReport();
                SceneReporter.CreateReport(excludeList);
            },
                             () =>
            {
                AssetsReporterUtils.OpenURL(Path.Combine("AssetsReporter", "index.html"));
            });

            EditorGUILayout.Space();
            // Texture
            OnGUIReportGroup("Texture Report",
                             () => { TextureReporter.CreateReport(targetList[currentTarget], excludeList); },
                             TextureReporter.OpenReport);
            // Audios
            OnGUIReportGroup("Audio Report",
                             () => { AudioReporter.CreateReport(targetList[currentTarget], excludeList); },
                             AudioReporter.OpenReport);
            // models
            OnGUIReportGroup("Model Report",
                             () => { ModelReporter.CreateReport(excludeList); },
                             ModelReporter.OpenReport);
            // AssetBundles
            OnGUIReportGroup("AssetBundle Report",
                             () => { AssetBundleReporter.CreateReport(true); },
                             AssetBundleReporter.OpenReport);
            // Resources
            OnGUIReportGroup("Resources Report", ResourcesReporter.CreateReport, ResourcesReporter.OpenReport);
            // Scenes
            OnGUIReportGroup("Scene Report",
                             () => { SceneReporter.CreateReport(excludeList); },
                             SceneReporter.OpenReport);

            EditorGUILayout.EndScrollView();
        }
示例#2
0
        public static void CreateReport(string pl, List <string> exList)
        {
            var reporter = new AudioReporter(pl, exList);

            reporter.ReportAudio(AssetsReporterUtils.ResultDir + "report_audio.js");
        }