add dialog for error messages

This commit is contained in:
PoChangSu 2020-06-29 14:31:13 +09:00
parent e7928df229
commit 4e3e1c46a7
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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<Animator>();