Created
April 18, 2017 16:40
-
-
Save giantmolecules/80623bc2c38cc257f1f5cad3e2e2e0af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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