private void DrawCreateButton() { if (GUILayout.Button(Environment.NewLine + "+" + Environment.NewLine)) { CreateTaskWindow.ShowEditor(); Repaint(); return; } }
public static void ShowEditor() { CreateTaskWindow editor = (CreateTaskWindow)EditorWindow.GetWindow((typeof(CreateTaskWindow)), false, "New Task"); editor.position = new Rect(new Vector2(xPos, yPos), new Vector2(width, height)); }