|
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
public class ScreenshotMaker : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private string folder;
|
|
|
|
[SerializeField]
|
|
private string filename;
|
|
|
|
public void TakeScreenshot()
|
|
{
|
|
ScreenCapture.CaptureScreenshot(folder+'\\'+filename+".png");
|
|
}
|
|
}
|