From 4e3e1c46a7f05e95f32898b3602eb01ce5f2b569 Mon Sep 17 00:00:00 2001 From: PoChangSu Date: Mon, 29 Jun 2020 14:31:13 +0900 Subject: [PATCH] add dialog for error messages --- Assets/VRM/UniGLTF/Scripts/IO/gltfExporter.cs | 2 +- Assets/VRM/UniVRM/Editor/Format/VRMExportSettings.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/VRM/UniGLTF/Scripts/IO/gltfExporter.cs b/Assets/VRM/UniGLTF/Scripts/IO/gltfExporter.cs index 8e2cf2436..4e5eb6a98 100644 --- a/Assets/VRM/UniGLTF/Scripts/IO/gltfExporter.cs +++ b/Assets/VRM/UniGLTF/Scripts/IO/gltfExporter.cs @@ -54,7 +54,7 @@ namespace UniGLTF } else { - EditorUtility.DisplayDialog("Error", "Root's Position, Rotation and Scale need to be Default values.", "ok"); + EditorUtility.DisplayDialog("Error", "The Root transform should have Default translation, rotation and scale.", "ok"); } } #endif diff --git a/Assets/VRM/UniVRM/Editor/Format/VRMExportSettings.cs b/Assets/VRM/UniVRM/Editor/Format/VRMExportSettings.cs index 31b0af119..3c9f9bd76 100644 --- a/Assets/VRM/UniVRM/Editor/Format/VRMExportSettings.cs +++ b/Assets/VRM/UniVRM/Editor/Format/VRMExportSettings.cs @@ -156,7 +156,8 @@ namespace VRM Source.transform.rotation != Quaternion.identity || Source.transform.localScale != Vector3.one) { - yield return Validation.Error("Root's Position, Rotation and Scale need to be Default values."); + EditorUtility.DisplayDialog("Error", "The Root transform should have Default translation, rotation and scale.", "ok"); + yield return Validation.Error("The Root transform should have Default translation, rotation and scale."); } var animator = Source.GetComponent();