Skip to content

Instantly share code, notes, and snippets.

@giantmolecules
Created April 18, 2017 16:40
Show Gist options
  • Save giantmolecules/80623bc2c38cc257f1f5cad3e2e2e0af to your computer and use it in GitHub Desktop.
Save giantmolecules/80623bc2c38cc257f1f5cad3e2e2e0af to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class screenshot : MonoBehaviour {
void Start () {
}
void Update () {
if(Input.GetKeyDown("space")){
Debug.Log("space");
Application.CaptureScreenshot("C:\\Users\\bbalogh\\Desktop\\screenshot.png", 4);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment