コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: MenuIntegration.cs プロジェクト: MA-GD21/toobin
 static void OpenPixelPainter(MenuCommand command)
 {
     PPWindow.ShowWindow();
 }