void Update()
 {
     if (Input.GetKeyDown(startCapture))
     {
         screenShot.StartCapture();
     }
 }
Beispiel #2
0
 private void OnGUI()
 {
     if (GUI.Button(new Rect(10, Screen.height - 60, 150, 50), "Take Screenshot"))
     {
         screenShot.StartCapture();
     }
     if (GUI.Button(new Rect(Screen.width - 160, Screen.height - 60, 150, 50), "Open Image Folder"))
     {
         // Open image save directory
         Process.Start(Config.saveFolder);
     }
 }
Beispiel #3
0
 private void OnGUI()
 {
     if (GUI.Button(new Rect(10, Screen.height - 60, 150, 50), "Take Screenshot"))
     {
         screenShot.StartCapture();
     }
     if (GUI.Button(new Rect(Screen.width - 160, Screen.height - 60, 150, 50), "Browse"))
     {
         // Open image save directory
         Utils.BrowseFolder(screenShot.saveFolder);
     }
 }