Beispiel #1
0
 private static void CenterWindow()
 {
     editor          = EditorWindow.GetWindow <MixamoManager>();
     x               = (Screen.currentResolution.width - width) / 2;
     y               = (Screen.currentResolution.height - height) / 2;
     editor.position = new Rect(x, y, width, height);
     editor.maxSize  = new Vector2(width, height);
     editor.minSize  = editor.maxSize;
 }
Beispiel #2
0
 static void ShowEditor()
 {
     editor = EditorWindow.GetWindow <MixamoManager>();
     CenterWindow();
 }