- Home /
problem of save screenshot in iphone using prime31 plugins
Hello everyone,
I want to save screenshot of game in iphone gallery . but when i click on save button it saved previous screenshot . please help me it is urgent for me.
string GetDocumentsPath() {
string DocumentsPath;
DocumentsPath = Application.dataPath.Substring (0, Application.dataPath.Length - 5);
DocumentsPath = DocumentsPath.Substring(0,DocumentsPath.LastIndexOf("/"));
return DocumentsPath + "/Documents/";
}
public void SaveWallpaperPrompt() {
StartCoroutine( EtceteraBinding.takeScreenShot("te.png") );
saveImage(2f);
if(File.Exists (GetDocumentsPath()+"te.png"))
{
Debug.Log ("------------------- File Exits");
EtceteraBinding.saveImageToPhotoAlbum(GetDocumentsPath()+"te.png");
}
else
{
Debug.Log("------------ File NOT FOUND");
}
}
IEnumerator saveImage(float tm)
{
yield return new WaitForSeconds(tm);
}
Comment
Your answer

Follow this Question
Related Questions
how to post message on friend wall in facebook? for ios 0 Answers
Add socialNetworking of prime31 plugin in unity3d for ios 0 Answers
while passing to a function in Prime31 throws error 1 Answer
Cloud recognition in Vuforia 0 Answers
Is there any way to know when a user rated the app using prime31's Etcetera plugin? 0 Answers