17 lines
324 B
C#
17 lines
324 B
C#
|
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");
|
|||
|
}
|
|||
|
}
|