using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ScreenShotCapturer : MonoBehaviour
{
private void Update()
{
if (Input.GetKeyDown(KeyCode.Z))
{
CaptureScreenShot("画像保存先");
}
}
private void CaptureScreenShot(string filePath)
{
ScreenCapture.CaptureScreenshot(filePath);
}
}