logo

Perlin_ScreenGrab

using UnityEngine;
using System.Collections;
//------------------------------------------------------------------------
//Perlin Noise Agents v1.0 - ScreenGrab Class
//--Class Controls the ScreenCapture process--Class lives as a component in the main Camera
//Mode Lab - Written by Luis Quinones
//------------------------------------------------------------------------
public class QuickScreenGrab : MonoBehaviour {
    void Update(){
        if (Input.GetKey ("q")) { 
            Application.CaptureScreenshot ("ScreenShot.png",4);
            Debug.Log("Took ScreenShot with UI");
        }
        if (Input.GetKey ("w")) {
            Application.CaptureScreenshot ("ScreenShot.png",4);
            Debug.Log("Took ScreenShot without UI");    
        }
    }
}
  • Share