mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-12 13:34:39 -05:00
add dialog for error messages
This commit is contained in:
parent
e7928df229
commit
4e3e1c46a7
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user