Add support for exporting meshes from the CLI

This commit is contained in:
Pierce Thompson
2023-06-20 15:58:08 -04:00
parent bb9ea7d86b
commit 5c8f8b24f6
4 changed files with 107 additions and 4 deletions

View File

@ -145,7 +145,7 @@ namespace AssetStudioCLI.Options
optionName: "-t, --asset-type <value(s)>",
optionDescription: "Specify asset type(s) to export\n" +
"<Value(s): tex2d, sprite, textAsset, monoBehaviour, font, shader, movieTexture,\n" +
"audio, video | all(default)>\n" +
"audio, video, mesh | all(default)>\n" +
"All - export all asset types, which are listed in the values\n" +
"*To specify multiple asset types, write them separated by ',' or ';' without spaces\n" +
"Examples: \"-t sprite\" or \"-t all\" or \"-t tex2d,sprite,audio\" or \"-t tex2d;sprite;font\"\n",
@ -457,6 +457,9 @@ namespace AssetStudioCLI.Options
case "movietexture":
o_exportAssetTypes.Value.Add(ClassIDType.MovieTexture);
break;
case "mesh":
o_exportAssetTypes.Value.Add(ClassIDType.Mesh);
break;
case "all":
o_exportAssetTypes.Value = supportedAssetTypes;
break;