mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-26 12:50:40 -05:00
KeepTextureAssetConfiguration to UseRuntimeTextureSerializer
This commit is contained in:
@@ -239,7 +239,9 @@ namespace VRM
|
||||
using (var exporter = new VRMExporter(data, gltfExportSettings,
|
||||
animationExporter: settings.KeepAnimation ? new EditorAnimationExporter() : null,
|
||||
materialExporter: materialExporter,
|
||||
textureSerializer: settings.KeepTextureAssetConfiguration ? new RuntimeTextureSerializer() : new EditorTextureSerializer()))
|
||||
textureSerializer: settings.UseRuntimeTextureSerializer
|
||||
? new RuntimeTextureSerializer()
|
||||
: new EditorTextureSerializer()))
|
||||
{
|
||||
exporter.Prepare(target);
|
||||
exporter.Export();
|
||||
|
||||
@@ -56,8 +56,8 @@ namespace VRM
|
||||
[LangMsg(Languages.en, "Export glTF animation.")]
|
||||
EXPORT_GLTF_ANIMATION,
|
||||
|
||||
[LangMsg(Languages.ja, "テクスチャーアセット設定を変更しない。")]
|
||||
[LangMsg(Languages.en, "Keep texture asset configuration.")]
|
||||
KEEP_TEXTURE_ASSET_CONFIGURATION,
|
||||
[LangMsg(Languages.ja, "RuntimeTextureSerializerを使う。")]
|
||||
[LangMsg(Languages.en, "Use RuntimeTextureSerializer.")]
|
||||
USE_RUNTIME_TEXTURE_SERIALIZER,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,10 +68,10 @@ namespace VRM
|
||||
public bool KeepAnimation = false;
|
||||
|
||||
/// <summary>
|
||||
/// Export時にTexture設定を変更しない
|
||||
/// Export時にRuntimeTextureSerializerを使う
|
||||
/// </summary>
|
||||
[Tooltip("Keep texture configuration")]
|
||||
public bool KeepTextureAssetConfiguration = false;
|
||||
[Tooltip("Use RuntimeTextureSerializer")]
|
||||
public bool UseRuntimeTextureSerializer = false;
|
||||
|
||||
public GltfExportSettings GltfExportSettings => new GltfExportSettings
|
||||
{
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace VRM
|
||||
m_checkbox_list.Add(new CheckBoxProp(serializedObject.FindProperty(nameof(VRMExportSettings.DivideVertexBuffer)), VRMExportOptions.DIVIDE_VERTEX_BUFFER));
|
||||
m_checkbox_list.Add(new CheckBoxProp(serializedObject.FindProperty(nameof(VRMExportSettings.KeepVertexColor)), VRMExportOptions.KEEP_VERTEX_COLOR));
|
||||
m_checkbox_list.Add(new CheckBoxProp(serializedObject.FindProperty(nameof(VRMExportSettings.KeepAnimation)), VRMExportOptions.EXPORT_GLTF_ANIMATION));
|
||||
m_checkbox_list.Add(new CheckBoxProp(serializedObject.FindProperty(nameof(VRMExportSettings.KeepTextureAssetConfiguration)), VRMExportOptions.KEEP_TEXTURE_ASSET_CONFIGURATION));
|
||||
m_checkbox_list.Add(new CheckBoxProp(serializedObject.FindProperty(nameof(VRMExportSettings.UseRuntimeTextureSerializer)), VRMExportOptions.USE_RUNTIME_TEXTURE_SERIALIZER));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user