mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-10 12:59:17 -05:00
add dialog for error messages
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user