diff --git a/AssetStudioGUI/AssetStudioGUIForm.Designer.cs b/AssetStudioGUI/AssetStudioGUIForm.Designer.cs
index 93bd1d1..cdceb07 100644
--- a/AssetStudioGUI/AssetStudioGUIForm.Designer.cs
+++ b/AssetStudioGUI/AssetStudioGUIForm.Designer.cs
@@ -58,10 +58,15 @@
this.exportFilteredAssetsMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.exportAnimatorWithSelectedAnimationClipToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.exportRawToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.allAssetsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.selectedAssetsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.filteredAssetsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
+ this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem7 = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem9 = new System.Windows.Forms.ToolStripMenuItem();
this.filterTypeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.allToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.debugMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -73,7 +78,6 @@
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
- this.sceneTreeView = new AssetStudioGUI.GOHierarchy();
this.treeSearch = new System.Windows.Forms.TextBox();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.assetListView = new System.Windows.Forms.ListView();
@@ -115,6 +119,7 @@
this.exportAnimatorwithselectedAnimationClipMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.jumpToSceneHierarchyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.showOriginalFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.sceneTreeView = new AssetStudioGUI.GOHierarchy();
this.menuStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
@@ -141,7 +146,6 @@
this.optionsToolStripMenuItem,
this.modelToolStripMenuItem,
this.exportToolStripMenuItem,
- this.exportRawToolStripMenuItem,
this.filterTypeToolStripMenuItem,
this.debugMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
@@ -165,33 +169,33 @@
// loadFileToolStripMenuItem
//
this.loadFileToolStripMenuItem.Name = "loadFileToolStripMenuItem";
- this.loadFileToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
+ this.loadFileToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.loadFileToolStripMenuItem.Text = "Load file";
this.loadFileToolStripMenuItem.Click += new System.EventHandler(this.loadFile_Click);
//
// loadFolderToolStripMenuItem
//
this.loadFolderToolStripMenuItem.Name = "loadFolderToolStripMenuItem";
- this.loadFolderToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
+ this.loadFolderToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.loadFolderToolStripMenuItem.Text = "Load folder";
this.loadFolderToolStripMenuItem.Click += new System.EventHandler(this.loadFolder_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
- this.toolStripMenuItem1.Size = new System.Drawing.Size(151, 6);
+ this.toolStripMenuItem1.Size = new System.Drawing.Size(177, 6);
//
// extractFileToolStripMenuItem
//
this.extractFileToolStripMenuItem.Name = "extractFileToolStripMenuItem";
- this.extractFileToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
+ this.extractFileToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.extractFileToolStripMenuItem.Text = "Extract file";
this.extractFileToolStripMenuItem.Click += new System.EventHandler(this.extractFileToolStripMenuItem_Click);
//
// extractFolderToolStripMenuItem
//
this.extractFolderToolStripMenuItem.Name = "extractFolderToolStripMenuItem";
- this.extractFolderToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
+ this.extractFolderToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.extractFolderToolStripMenuItem.Text = "Extract folder";
this.extractFolderToolStripMenuItem.Click += new System.EventHandler(this.extractFolderToolStripMenuItem_Click);
//
@@ -341,7 +345,10 @@
this.exportSelectedAssetsMenuItem,
this.exportFilteredAssetsMenuItem,
this.toolStripSeparator3,
- this.exportAnimatorWithSelectedAnimationClipToolStripMenuItem});
+ this.exportAnimatorWithSelectedAnimationClipToolStripMenuItem,
+ this.toolStripSeparator4,
+ this.toolStripMenuItem2,
+ this.toolStripMenuItem3});
this.exportToolStripMenuItem.Name = "exportToolStripMenuItem";
this.exportToolStripMenuItem.Size = new System.Drawing.Size(58, 21);
this.exportToolStripMenuItem.Text = "Export";
@@ -379,36 +386,72 @@
this.exportAnimatorWithSelectedAnimationClipToolStripMenuItem.Text = "Animator + selected AnimationClips";
this.exportAnimatorWithSelectedAnimationClipToolStripMenuItem.Click += new System.EventHandler(this.exportAnimatorwithAnimationClipMenuItem_Click);
//
- // exportRawToolStripMenuItem
+ // toolStripSeparator4
//
- this.exportRawToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.allAssetsToolStripMenuItem,
- this.selectedAssetsToolStripMenuItem,
- this.filteredAssetsToolStripMenuItem});
- this.exportRawToolStripMenuItem.Name = "exportRawToolStripMenuItem";
- this.exportRawToolStripMenuItem.Size = new System.Drawing.Size(86, 21);
- this.exportRawToolStripMenuItem.Text = "Export Raw";
+ this.toolStripSeparator4.Name = "toolStripSeparator4";
+ this.toolStripSeparator4.Size = new System.Drawing.Size(281, 6);
//
- // allAssetsToolStripMenuItem
+ // toolStripMenuItem2
//
- this.allAssetsToolStripMenuItem.Name = "allAssetsToolStripMenuItem";
- this.allAssetsToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
- this.allAssetsToolStripMenuItem.Text = "All assets";
- this.allAssetsToolStripMenuItem.Click += new System.EventHandler(this.allAssetsToolStripMenuItem_Click);
+ this.toolStripMenuItem2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripMenuItem4,
+ this.toolStripMenuItem5,
+ this.toolStripMenuItem6});
+ this.toolStripMenuItem2.Name = "toolStripMenuItem2";
+ this.toolStripMenuItem2.Size = new System.Drawing.Size(284, 22);
+ this.toolStripMenuItem2.Text = "Raw";
//
- // selectedAssetsToolStripMenuItem
+ // toolStripMenuItem4
//
- this.selectedAssetsToolStripMenuItem.Name = "selectedAssetsToolStripMenuItem";
- this.selectedAssetsToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
- this.selectedAssetsToolStripMenuItem.Text = "Selected assets";
- this.selectedAssetsToolStripMenuItem.Click += new System.EventHandler(this.selectedAssetsToolStripMenuItem_Click);
+ this.toolStripMenuItem4.Name = "toolStripMenuItem4";
+ this.toolStripMenuItem4.Size = new System.Drawing.Size(165, 22);
+ this.toolStripMenuItem4.Text = "All assets";
+ this.toolStripMenuItem4.Click += new System.EventHandler(this.toolStripMenuItem4_Click);
//
- // filteredAssetsToolStripMenuItem
+ // toolStripMenuItem5
//
- this.filteredAssetsToolStripMenuItem.Name = "filteredAssetsToolStripMenuItem";
- this.filteredAssetsToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
- this.filteredAssetsToolStripMenuItem.Text = "Filtered assets";
- this.filteredAssetsToolStripMenuItem.Click += new System.EventHandler(this.filteredAssetsToolStripMenuItem_Click);
+ this.toolStripMenuItem5.Name = "toolStripMenuItem5";
+ this.toolStripMenuItem5.Size = new System.Drawing.Size(165, 22);
+ this.toolStripMenuItem5.Text = "Selected assets";
+ this.toolStripMenuItem5.Click += new System.EventHandler(this.toolStripMenuItem5_Click);
+ //
+ // toolStripMenuItem6
+ //
+ this.toolStripMenuItem6.Name = "toolStripMenuItem6";
+ this.toolStripMenuItem6.Size = new System.Drawing.Size(165, 22);
+ this.toolStripMenuItem6.Text = "Filtered assets";
+ this.toolStripMenuItem6.Click += new System.EventHandler(this.toolStripMenuItem6_Click);
+ //
+ // toolStripMenuItem3
+ //
+ this.toolStripMenuItem3.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripMenuItem7,
+ this.toolStripMenuItem8,
+ this.toolStripMenuItem9});
+ this.toolStripMenuItem3.Name = "toolStripMenuItem3";
+ this.toolStripMenuItem3.Size = new System.Drawing.Size(284, 22);
+ this.toolStripMenuItem3.Text = "Dump";
+ //
+ // toolStripMenuItem7
+ //
+ this.toolStripMenuItem7.Name = "toolStripMenuItem7";
+ this.toolStripMenuItem7.Size = new System.Drawing.Size(180, 22);
+ this.toolStripMenuItem7.Text = "All assets";
+ this.toolStripMenuItem7.Click += new System.EventHandler(this.toolStripMenuItem7_Click);
+ //
+ // toolStripMenuItem8
+ //
+ this.toolStripMenuItem8.Name = "toolStripMenuItem8";
+ this.toolStripMenuItem8.Size = new System.Drawing.Size(180, 22);
+ this.toolStripMenuItem8.Text = "Selected assets";
+ this.toolStripMenuItem8.Click += new System.EventHandler(this.toolStripMenuItem8_Click);
+ //
+ // toolStripMenuItem9
+ //
+ this.toolStripMenuItem9.Name = "toolStripMenuItem9";
+ this.toolStripMenuItem9.Size = new System.Drawing.Size(180, 22);
+ this.toolStripMenuItem9.Text = "Filtered assets";
+ this.toolStripMenuItem9.Click += new System.EventHandler(this.toolStripMenuItem9_Click);
//
// filterTypeToolStripMenuItem
//
@@ -424,7 +467,7 @@
this.allToolStripMenuItem.CheckOnClick = true;
this.allToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.allToolStripMenuItem.Name = "allToolStripMenuItem";
- this.allToolStripMenuItem.Size = new System.Drawing.Size(90, 22);
+ this.allToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.allToolStripMenuItem.Text = "All";
this.allToolStripMenuItem.Click += new System.EventHandler(this.typeToolStripMenuItem_Click);
//
@@ -524,17 +567,6 @@
this.tabPage1.Text = "Scene Hierarchy";
this.tabPage1.UseVisualStyleBackColor = true;
//
- // sceneTreeView
- //
- this.sceneTreeView.CheckBoxes = true;
- this.sceneTreeView.Dock = System.Windows.Forms.DockStyle.Fill;
- this.sceneTreeView.HideSelection = false;
- this.sceneTreeView.Location = new System.Drawing.Point(0, 21);
- this.sceneTreeView.Name = "sceneTreeView";
- this.sceneTreeView.Size = new System.Drawing.Size(410, 587);
- this.sceneTreeView.TabIndex = 1;
- this.sceneTreeView.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.sceneTreeView_AfterCheck);
- //
// treeSearch
//
this.treeSearch.Dock = System.Windows.Forms.DockStyle.Top;
@@ -965,6 +997,17 @@
this.showOriginalFileToolStripMenuItem.Visible = false;
this.showOriginalFileToolStripMenuItem.Click += new System.EventHandler(this.showOriginalFileToolStripMenuItem_Click);
//
+ // sceneTreeView
+ //
+ this.sceneTreeView.CheckBoxes = true;
+ this.sceneTreeView.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.sceneTreeView.HideSelection = false;
+ this.sceneTreeView.Location = new System.Drawing.Point(0, 21);
+ this.sceneTreeView.Name = "sceneTreeView";
+ this.sceneTreeView.Size = new System.Drawing.Size(410, 587);
+ this.sceneTreeView.TabIndex = 1;
+ this.sceneTreeView.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.sceneTreeView_AfterCheck);
+ //
// AssetStudioGUIForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -1093,10 +1136,15 @@
private System.Windows.Forms.ToolStripMenuItem exportSelectedObjectsmergeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem exportSelectedObjectsmergeWithAnimationClipToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
- private System.Windows.Forms.ToolStripMenuItem exportRawToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem allAssetsToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem selectedAssetsToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem filteredAssetsToolStripMenuItem;
+ private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem5;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem6;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem7;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem8;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem9;
}
}
diff --git a/AssetStudioGUI/AssetStudioGUIForm.cs b/AssetStudioGUI/AssetStudioGUIForm.cs
index 618614c..1755456 100644
--- a/AssetStudioGUI/AssetStudioGUIForm.cs
+++ b/AssetStudioGUI/AssetStudioGUIForm.cs
@@ -1705,7 +1705,7 @@ namespace AssetStudioGUI
private void exportSelectedAssetsToolStripMenuItem_Click(object sender, EventArgs e)
{
- ExportAssets(2, false);
+ ExportAssets(2, ExportType.Convert);
}
private void showOriginalFileToolStripMenuItem_Click(object sender, EventArgs e)
@@ -1817,21 +1817,6 @@ namespace AssetStudioGUI
}
}
- private void allAssetsToolStripMenuItem_Click(object sender, EventArgs e)
- {
- ExportAssets(1, true);
- }
-
- private void selectedAssetsToolStripMenuItem_Click(object sender, EventArgs e)
- {
- ExportAssets(2, true);
- }
-
- private void filteredAssetsToolStripMenuItem_Click(object sender, EventArgs e)
- {
- ExportAssets(3, true);
- }
-
private void jumpToSceneHierarchyToolStripMenuItem_Click(object sender, EventArgs e)
{
var selectasset = (AssetItem)assetListView.Items[assetListView.SelectedIndices[0]];
@@ -1844,17 +1829,47 @@ namespace AssetStudioGUI
private void exportAllAssetsMenuItem_Click(object sender, EventArgs e)
{
- ExportAssets(1, false);
+ ExportAssets(1, ExportType.Convert);
}
private void exportSelectedAssetsMenuItem_Click(object sender, EventArgs e)
{
- ExportAssets(2, false);
+ ExportAssets(2, ExportType.Convert);
}
private void exportFilteredAssetsMenuItem_Click(object sender, EventArgs e)
{
- ExportAssets(3, false);
+ ExportAssets(3, ExportType.Convert);
+ }
+
+ private void toolStripMenuItem4_Click(object sender, EventArgs e)
+ {
+ ExportAssets(1, ExportType.Raw);
+ }
+
+ private void toolStripMenuItem5_Click(object sender, EventArgs e)
+ {
+ ExportAssets(2, ExportType.Raw);
+ }
+
+ private void toolStripMenuItem6_Click(object sender, EventArgs e)
+ {
+ ExportAssets(3, ExportType.Raw);
+ }
+
+ private void toolStripMenuItem7_Click(object sender, EventArgs e)
+ {
+ ExportAssets(1, ExportType.Dump);
+ }
+
+ private void toolStripMenuItem8_Click(object sender, EventArgs e)
+ {
+ ExportAssets(2, ExportType.Dump);
+ }
+
+ private void toolStripMenuItem9_Click(object sender, EventArgs e)
+ {
+ ExportAssets(3, ExportType.Dump);
}
private void exportAllObjectssplitToolStripMenuItem1_Click(object sender, EventArgs e)
@@ -1914,7 +1929,7 @@ namespace AssetStudioGUI
assetListView.EndUpdate();
}
- private void ExportAssets(int type, bool raw)
+ private void ExportAssets(int type, ExportType exportType)
{
if (exportableAssets.Count > 0)
{
@@ -1936,7 +1951,7 @@ namespace AssetStudioGUI
toExportAssets = visibleAssets;
break;
}
- Studio.ExportAssets(saveFolderDialog1.Folder, toExportAssets, assetGroupOptions.SelectedIndex, openAfterExport.Checked, raw);
+ Studio.ExportAssets(saveFolderDialog1.Folder, toExportAssets, assetGroupOptions.SelectedIndex, openAfterExport.Checked, exportType);
}
}
else
diff --git a/AssetStudioGUI/AssetStudioGUIForm.resx b/AssetStudioGUI/AssetStudioGUIForm.resx
index f5d72e1..2ba6a7a 100644
--- a/AssetStudioGUI/AssetStudioGUIForm.resx
+++ b/AssetStudioGUI/AssetStudioGUIForm.resx
@@ -120,9 +120,6 @@
312, 17
-
- 432, 17
-
abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWYZ
1234567890.:,;'\"(!?)+-*/=
@@ -141,6 +138,9 @@ The quick brown fox jumps over the lazy dog. 1234567890
The quick brown fox jumps over the lazy dog. 1234567890
+
+ 432, 17
+
553, 17
diff --git a/AssetStudioGUI/ExportOptions.Designer.cs b/AssetStudioGUI/ExportOptions.Designer.cs
index 7035f27..e4ab1ec 100644
--- a/AssetStudioGUI/ExportOptions.Designer.cs
+++ b/AssetStudioGUI/ExportOptions.Designer.cs
@@ -70,7 +70,7 @@
this.OKbutton.TabIndex = 6;
this.OKbutton.Text = "OK";
this.OKbutton.UseVisualStyleBackColor = true;
- this.OKbutton.Click += new System.EventHandler(this.fbxOKbutton_Click);
+ this.OKbutton.Click += new System.EventHandler(this.OKbutton_Click);
//
// Cancel
//
diff --git a/AssetStudioGUI/ExportOptions.cs b/AssetStudioGUI/ExportOptions.cs
index f284c56..47b0338 100644
--- a/AssetStudioGUI/ExportOptions.cs
+++ b/AssetStudioGUI/ExportOptions.cs
@@ -39,13 +39,7 @@ namespace AssetStudioGUI
fbxFormat.SelectedIndex = (int)Properties.Settings.Default["fbxFormat"];
}
- private void exportOpnions_CheckedChanged(object sender, EventArgs e)
- {
- Properties.Settings.Default[((CheckBox)sender).Name] = ((CheckBox)sender).Checked;
- Properties.Settings.Default.Save();
- }
-
- private void fbxOKbutton_Click(object sender, EventArgs e)
+ private void OKbutton_Click(object sender, EventArgs e)
{
Properties.Settings.Default["convertTexture"] = converttexture.Checked;
Properties.Settings.Default["convertAudio"] = convertAudio.Checked;
diff --git a/AssetStudioGUI/Exporter.cs b/AssetStudioGUI/Exporter.cs
index feec4c9..26c3466 100644
--- a/AssetStudioGUI/Exporter.cs
+++ b/AssetStudioGUI/Exporter.cs
@@ -334,5 +334,19 @@ namespace AssetStudioGUI
ModelExporter.ExportFbx(exportPath, convert, eulerFilter, filterPrecision,
exportAllNodes, exportSkins, exportAnimations, exportBlendShape, castToBone, boneSize, scaleFactor, fbxVersion, fbxFormat == 1);
}
+
+ public static bool ExportDumpFile(AssetItem item, string exportPath)
+ {
+ var exportFullName = exportPath + item.Text + ".txt";
+ if (ExportFileExists(exportFullName))
+ return false;
+ var str = item.Asset.Dump();
+ if (str != null)
+ {
+ File.WriteAllText(exportFullName, str);
+ return true;
+ }
+ return false;
+ }
}
}
diff --git a/AssetStudioGUI/Studio.cs b/AssetStudioGUI/Studio.cs
index ef0c997..b5fdea8 100644
--- a/AssetStudioGUI/Studio.cs
+++ b/AssetStudioGUI/Studio.cs
@@ -12,6 +12,13 @@ using Object = AssetStudio.Object;
namespace AssetStudioGUI
{
+ internal enum ExportType
+ {
+ Convert,
+ Raw,
+ Dump
+ }
+
internal static class Studio
{
public static AssetsManager assetsManager = new AssetsManager();
@@ -355,7 +362,7 @@ namespace AssetStudioGUI
return Path.GetInvalidFileNameChars().Aggregate(str, (current, c) => current.Replace(c, '_'));
}
- public static void ExportAssets(string savePath, List toExportAssets, int assetGroupSelectedIndex, bool openAfterExport, bool raw)
+ public static void ExportAssets(string savePath, List toExportAssets, int assetGroupSelectedIndex, bool openAfterExport, ExportType exportType)
{
ThreadPool.QueueUserWorkItem(state =>
{
@@ -379,91 +386,99 @@ namespace AssetStudioGUI
Logger.Info($"Exporting {asset.TypeString}: {asset.Text}");
try
{
- if (raw)
+ switch (exportType)
{
- if (ExportRawFile(asset, exportpath))
- {
- exportedCount++;
- }
- continue;
- }
- switch (asset.Type)
- {
- case ClassIDType.Texture2D:
- if (ExportTexture2D(asset, exportpath))
- {
- exportedCount++;
- }
- break;
- case ClassIDType.AudioClip:
- if (ExportAudioClip(asset, exportpath))
- {
- exportedCount++;
- }
- break;
- case ClassIDType.Shader:
- if (ExportShader(asset, exportpath))
- {
- exportedCount++;
- }
- break;
- case ClassIDType.TextAsset:
- if (ExportTextAsset(asset, exportpath))
- {
- exportedCount++;
- }
- break;
- case ClassIDType.MonoBehaviour:
- if (ExportMonoBehaviour(asset, exportpath))
- {
- exportedCount++;
- }
- break;
- case ClassIDType.Font:
- if (ExportFont(asset, exportpath))
- {
- exportedCount++;
- }
- break;
- case ClassIDType.Mesh:
- if (ExportMesh(asset, exportpath))
- {
- exportedCount++;
- }
- break;
- case ClassIDType.VideoClip:
- if (ExportVideoClip(asset, exportpath))
- {
- exportedCount++;
- }
- break;
- case ClassIDType.MovieTexture:
- if (ExportMovieTexture(asset, exportpath))
- {
- exportedCount++;
- }
- break;
- case ClassIDType.Sprite:
- if (ExportSprite(asset, exportpath))
- {
- exportedCount++;
- }
- break;
- case ClassIDType.Animator:
- if (ExportAnimator(asset, exportpath))
- {
- exportedCount++;
- }
- break;
- case ClassIDType.AnimationClip:
- break;
- default:
+ case ExportType.Raw:
if (ExportRawFile(asset, exportpath))
{
exportedCount++;
}
break;
-
+ case ExportType.Dump:
+ if (ExportDumpFile(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ case ExportType.Convert:
+ switch (asset.Type)
+ {
+ case ClassIDType.Texture2D:
+ if (ExportTexture2D(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ case ClassIDType.AudioClip:
+ if (ExportAudioClip(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ case ClassIDType.Shader:
+ if (ExportShader(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ case ClassIDType.TextAsset:
+ if (ExportTextAsset(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ case ClassIDType.MonoBehaviour:
+ if (ExportMonoBehaviour(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ case ClassIDType.Font:
+ if (ExportFont(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ case ClassIDType.Mesh:
+ if (ExportMesh(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ case ClassIDType.VideoClip:
+ if (ExportVideoClip(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ case ClassIDType.MovieTexture:
+ if (ExportMovieTexture(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ case ClassIDType.Sprite:
+ if (ExportSprite(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ case ClassIDType.Animator:
+ if (ExportAnimator(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ case ClassIDType.AnimationClip:
+ break;
+ default:
+ if (ExportRawFile(asset, exportpath))
+ {
+ exportedCount++;
+ }
+ break;
+ }
+ break;
}
}
catch (Exception ex)