Add support for exporting meshes from the CLI (#5)

* Add support for exporting meshes from the CLI

* Add the Mesh ClassIDType to CLIOptions' supportedAssetTypes
This commit is contained in:
Pierce Thompson
2023-06-23 08:37:40 -04:00
committed by GitHub
parent bb9ea7d86b
commit 5695afae7b
4 changed files with 108 additions and 4 deletions

View File

@ -123,6 +123,7 @@ namespace AssetStudioCLI.Options
ClassIDType.AudioClip,
ClassIDType.VideoClip,
ClassIDType.MovieTexture,
ClassIDType.Mesh,
};
#region Init General Options
@ -145,7 +146,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 +458,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;