How can i find the right path to a file inside the folder Documents?

Hi guys,
After more than one week searcing and reading i decided that was better to create a brand new topic with a clear question because i found only bits and pieces around the forum and google with no help at all

Using Application.CaptureScreenshot(“Screenshot.png”); this command saves a screenshot inside the “Documents” folder on the iphone, i can see the script working because i can access the file via xcode.

Now i’m using a plug in (etcetera) to open a mail composer and add the generated .png as an attachment
(i can’t use the provided screenshot on etcetera because its not compatible with another plug in i’m using).
the problem is…i can find the exact path, i found in many forums that the command application.datapath contains a bug, it goes to the data folder instead of documents…

Any help?

Ale.

I believe that bug has been fixed in a reacent unity upgrade. Have you tried Application.dataPath + “Screenshot.png”; as your path?

Also, have you tried any of the other dataPaths in the Application class? Because I can’t remember which one references the documents folder.

Thank you Daniel, i’ve solved the problem thanks to Petey and Prime31…

http://forum.unity3d.com/threads/64166-Etcetera-Plugin-Live!-Alerts-prompts-loading-views-push-localization-and-more!/page14

Applicaion.persistantDataPath solved for me