unity screenshot window windows code example
Example: unity take screenshot
using UnityEngine;// Generate a screenshot and save to disk with the name SomeLevel.png.public class ExampleScript : MonoBehaviour
{
void OnMouseDown()
{
ScreenCapture.CaptureScreenshot("SomeLevel");
}
}