public static PPWindow ShowWindow() { Vector3 size = new Vector3(400, 600); Vector3 position = new Vector3(Screen.width / 2 - size.x / 2, Screen.height / 2 - size.y / 2); Rect rect = new Rect(position, size); PPWindow window = GetWindowWithRect <PPWindow>(rect, false, "Pixel Painter", true); window.minSize = new Vector2(100, 100); window.maxSize = new Vector2(2000, 2000); return(window); }
static void OpenPixelPainter(MenuCommand command) { PPWindow.ShowWindow(); }