mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-07-18 03:24:15 -04:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user