// Update is called once per frame
    void Update()
    {
        if (Input.GetKey(KeyCode.Return))
        {
            PrintScreen();
        }

        if (Input.GetKey(KeyCode.Space))
        {
            TakeScreenCapture.ChangePath();
        }
    }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     instance = this;
 }
 public void PrintScreen()
 {
     TakeScreenCapture.TakeScreenshortStatic(2048, 2048);
 }