- [GUI] Improve ExportOptions.
- [GUI] Update Library. - [GUI] Fix bug in `AssetBrowser`.
This commit is contained in:
@@ -336,8 +336,8 @@ namespace AssetStudio.CLI
|
||||
}
|
||||
var m_Animator = (Animator)item.Asset;
|
||||
var convert = animationList != null
|
||||
? new ModelConverter(m_Animator, Properties.Settings.Default.convertType, Studio.Game, Properties.Settings.Default.collectAnimations, animationList.Select(x => (AnimationClip)x.Asset).ToArray())
|
||||
: new ModelConverter(m_Animator, Properties.Settings.Default.convertType, Studio.Game, Properties.Settings.Default.collectAnimations);
|
||||
? new ModelConverter(m_Animator, Properties.Settings.Default.convertType, Properties.Settings.Default.texs, Properties.Settings.Default.uvs, Studio.Game, Properties.Settings.Default.collectAnimations, animationList.Select(x => (AnimationClip)x.Asset).ToArray())
|
||||
: new ModelConverter(m_Animator, Properties.Settings.Default.convertType, Properties.Settings.Default.texs, Properties.Settings.Default.uvs, Studio.Game, Properties.Settings.Default.collectAnimations);
|
||||
ExportFbx(convert, exportFullPath);
|
||||
return true;
|
||||
}
|
||||
@@ -352,8 +352,8 @@ namespace AssetStudio.CLI
|
||||
public static bool ExportGameObject(GameObject gameObject, string exportPath, List<AssetItem> animationList = null)
|
||||
{
|
||||
var convert = animationList != null
|
||||
? new ModelConverter(gameObject, Properties.Settings.Default.convertType, Studio.Game, Properties.Settings.Default.collectAnimations, animationList.Select(x => (AnimationClip)x.Asset).ToArray())
|
||||
: new ModelConverter(gameObject, Properties.Settings.Default.convertType, Studio.Game, Properties.Settings.Default.collectAnimations);
|
||||
? new ModelConverter(gameObject, Properties.Settings.Default.convertType, Properties.Settings.Default.texs, Properties.Settings.Default.uvs, Studio.Game, Properties.Settings.Default.collectAnimations, animationList.Select(x => (AnimationClip)x.Asset).ToArray())
|
||||
: new ModelConverter(gameObject, Properties.Settings.Default.convertType, Properties.Settings.Default.texs, Properties.Settings.Default.uvs, Studio.Game, Properties.Settings.Default.collectAnimations);
|
||||
|
||||
if (convert.MeshList.Count == 0)
|
||||
{
|
||||
@@ -377,8 +377,6 @@ namespace AssetStudio.CLI
|
||||
exportBlendShape = Properties.Settings.Default.exportBlendShape,
|
||||
castToBone = Properties.Settings.Default.castToBone,
|
||||
boneSize = (int)Properties.Settings.Default.boneSize,
|
||||
exportAllUvsAsDiffuseMaps = Properties.Settings.Default.exportAllUvsAsDiffuseMaps,
|
||||
exportUV0UV1 = Properties.Settings.Default.exportUV0UV1,
|
||||
scaleFactor = (float)Properties.Settings.Default.scaleFactor,
|
||||
fbxVersion = Properties.Settings.Default.fbxVersion,
|
||||
fbxFormat = Properties.Settings.Default.fbxFormat
|
||||
|
||||
@@ -43,9 +43,6 @@ namespace AssetStudio.CLI
|
||||
Logger.Default = new ConsoleLogger();
|
||||
Logger.FileLogging = Settings.Default.enableFileLogging;
|
||||
AssetsHelper.Minimal = Settings.Default.minimalAssetMap;
|
||||
Shader.Parsable = !Settings.Default.disableShader;
|
||||
Renderer.Parsable = !Settings.Default.disableRenderer;
|
||||
AnimationClip.Parsable = !Settings.Default.disableAnimationClip;
|
||||
AssetsHelper.SetUnityVersion(o.UnityVersion);
|
||||
|
||||
assetsManager.Silent = o.Silent;
|
||||
|
||||
@@ -57,8 +57,6 @@ namespace AssetStudio.CLI.Properties {
|
||||
public bool exportBlendShape => AppSettings.Get("exportBlendShape", true);
|
||||
public bool castToBone => AppSettings.Get("castToBone", false);
|
||||
public bool restoreExtensionName => AppSettings.Get("restoreExtensionName", true);
|
||||
public bool exportAllUvsAsDiffuseMaps => AppSettings.Get("exportAllUvsAsDiffuseMaps", false);
|
||||
public bool exportUV0UV1 => AppSettings.Get("exportUV0UV1", false);
|
||||
public bool encrypted => AppSettings.Get("encrypted", true);
|
||||
public byte key => AppSettings.Get("key", (byte)0x93);
|
||||
public int selectedGame => AppSettings.Get("selectedGame", 0);
|
||||
@@ -66,11 +64,10 @@ namespace AssetStudio.CLI.Properties {
|
||||
public int selectedCNUnityKey => AppSettings.Get("selectedCNUnityKey", 0);
|
||||
public int selectedAssetMapType => AppSettings.Get("selectedAssetMapType", 0);
|
||||
public bool exportMiHoYoBinData => AppSettings.Get("exportMiHoYoBinData", true);
|
||||
public bool disableShader => AppSettings.Get("disableShader", false);
|
||||
public bool disableRenderer => AppSettings.Get("disableRenderer", false);
|
||||
public bool disableAnimationClip => AppSettings.Get("disableAnimationClip", false);
|
||||
public bool enableFileLogging => AppSettings.Get("enableFileLogging", false);
|
||||
public bool minimalAssetMap => AppSettings.Get("minimalAssetMap", true);
|
||||
public string texs => AppSettings.Get("texs", string.Empty);
|
||||
public string uvs => AppSettings.Get("uvs", string.Empty);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -332,13 +332,13 @@ namespace AssetStudio.CLI
|
||||
break;
|
||||
case Mesh _:
|
||||
case TextAsset _:
|
||||
case AnimationClip _ when AnimationClip.Parsable:
|
||||
case AnimationClip _:
|
||||
case Font _:
|
||||
case MovieTexture _:
|
||||
case Sprite _:
|
||||
case Material _:
|
||||
case MiHoYoBinData _:
|
||||
case Shader _ when Shader.Parsable:
|
||||
case Shader _:
|
||||
case Animator _:
|
||||
exportable = !ModelOnly;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user