maxhacker11

Screenshot.cs

Sep 6th, 2023
1,870
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | Source Code | 0 0
  1. using UnityEngine;
  2. using System;
  3.  
  4. public class Screenshot : MonoBehaviour
  5. {
  6.     private void Update()
  7.     {
  8.         if (Input.GetKeyDown(KeyCode.O))
  9.         {
  10.             ScreenCapture.CaptureScreenshot("screenshot-" + DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss") + ".png", 4);
  11.         }
  12.     }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment