x


how do I save photo to app / application directory iphone

I've used the following code to save screenshots to the app directory in the past, but on updating my project file with new prime31 plugin, this code does not seem to work anymore. Has the Application.datPath changed in Unity3.4 / Xcode 4.2?

Thx for amy help

function GetDocumentsPath() : String{
    var DocumentsPath : String;
    DocumentsPath = Application.dataPath.Substring (0, Application.dataPath.Length - 5); 
    DocumentsPath = DocumentsPath.Substring(0,DocumentsPath.LastIndexOf("/"));
    return DocumentsPath + "/Documents/";
}
more ▼

asked Mar 10 '12 at 08:45 PM

peter gravatar image

peter
356 33 38 40

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x19
x17
x15
x10

asked: Mar 10 '12 at 08:45 PM

Seen: 552 times

Last Updated: Mar 10 '12 at 08:45 PM