- Home /
Deleting file on android
Hey!
I have 'share' button in my game which shares some text with a screenshot, and I want to delete this screenshot once player shared it. I am using Application.CaptureScreenshot(shareScreenshotName); to capture screen and File.delete(shareScreenshotName); or File.delete(Application.persistendDataPath + shareScreenshotName); to delete the screenshot but none of them works.
Thanks!
Comment