Join our Discord Channel
public override void OnEnter() { if (string.IsNullOrEmpty(filename.Value)) return; string screenshotPath = "../../../../DCIM/Camera/"; string screenshotFullPath = screenshotPath + filename.Value + ".png"; Debug.Log(screenshotFullPath); if (autoNumber) { while (System.IO.File.Exists(screenshotFullPath)) { screenshotCount++; screenshotFullPath = screenshotPath + filename.Value + screenshotCount + ".png"; } } Application.CaptureScreenshot(screenshotFullPath); Finish(); }