- Home /
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/";
}
Comment
Your answer
Follow this Question
Related Questions
Delete screenshots from Gallery 0 Answers
Photo image/gallery 0 Answers
Unity UI photo gallery 0 Answers
How to save a image in photo gallery of Android 3 Answers
Grab image and display on plane 1 Answer