Ejemplo n.º 1
0
    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();
    }
 private void OnGUIModel()
 {
     EditorGUILayout.LabelField("Model Report");
     EditorGUILayout.BeginHorizontal();
     EditorGUILayout.LabelField("", GUILayout.Width(Space));
     if (GUILayout.Button("Report", GUILayout.Width(100)))
     {
         SaveExcludeList();
         ModelReporter.CreateReport(excludeList);
         ModelReporter.OpenReport();
     }
     if (GUILayout.Button("Open", GUILayout.Width(100)))
     {
         ModelReporter.OpenReport();
     }
     EditorGUILayout.EndHorizontal();
 }
 private void OnGUIModel()
 {
     EditorGUILayout.LabelField("Model Report");
     EditorGUILayout.BeginHorizontal();
     EditorGUILayout.LabelField("", GUILayout.Width(Space));
     if (GUILayout.Button("Report", GUILayout.Width(100)))
     {
         SaveExcludeList();
         AssetsReporterUtils.WriteReportLanguage(languages[this.selectLanguageIdx].languageCode);
         ModelReporter.CreateReport(excludeList);
         ModelReporter.OpenReport();
     }
     if (GUILayout.Button("Open", GUILayout.Width(100)))
     {
         ModelReporter.OpenReport();
     }
     EditorGUILayout.EndHorizontal();
 }
 private void OnGUIAll()
 {
     EditorGUILayout.LabelField("All Report");
     EditorGUILayout.BeginHorizontal();
     EditorGUILayout.LabelField("", GUILayout.Width(Space));
     if (GUILayout.Button("Report", GUILayout.Width(100)))
     {
         SaveExcludeList();
         TextureReporter.CreateReport(this.targetList[currentTarget], excludeList);
         ModelReporter.CreateReport(excludeList);
         AudioReporter.CreateReport(this.targetList[currentTarget], excludeList);
         AssetBundleReporter.CreateReport();
         ResourcesReporter.CreateReport();
         AssetsReporterUtils.OpenURL(Path.Combine("AssetsReporter", "index.html"));
     }
     if (GUILayout.Button("Open", GUILayout.Width(100)))
     {
         AssetsReporterUtils.OpenURL(Path.Combine("AssetsReporter", "index.html"));
     }
     EditorGUILayout.EndHorizontal();
 }
Ejemplo n.º 5
0
//	private Dictionary<TextureImporterType, int> textureTypeSet = new Dictionary<TextureImporterType, int>();

    /// <summary>
    /// Create Window
    /// </summary>
    public static void CreateReport(List <string> exList)
    {
        var reporter = new ModelReporter(exList);

        reporter.ReportModel(AssetsReporterUtils.ResultDir + "report_model.js");
    }
Ejemplo n.º 6
0
//	private Dictionary<TextureImporterType, int> textureTypeSet = new Dictionary<TextureImporterType, int>();

    /// <summary>
    /// Create Window
    /// </summary>
    public static void CreateReport(List <string> exList)
    {
        var reporter = new ModelReporter(exList);

        reporter.ReportModel("AssetsReporter/result/report_model.js");
    }