Hello, i have a problem where i take a screeshot inside a folder and would like to use it as a texture in a canvas, picture, but i have no idea how. Heres how i take the screenshot.
ScreenCapture.CaptureScreenshot(Application.dataPath + "/screenshots/" + DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss") + ".png");
UnityEditor.AssetDatabase.Refresh();
and would also like to delete these screenshots after pressing a button. Thanks in advance!