blob: d1632cf4bbe88ef676651318169a915d702d392c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
using System;
using System.IO;
using UnityEngine;
public class ResSetter : MonoBehaviour
{
public int Width = 1438;
public int Height = 810;
private int cnt;
public void Start()
{
Screen.SetResolution(this.Width, this.Height, false);
}
public void Update()
{
if (Input.GetKeyDown(KeyCode.S))
{
Directory.CreateDirectory("C:\\AmongUsSS");
string format = "C:\\AmongUsSS\\Screenshot-{0}.png";
int num = this.cnt;
this.cnt = num + 1;
ScreenCapture.CaptureScreenshot(string.Format(format, num));
}
}
}
|