Question by
goutham12 · Aug 29, 2016 at 10:40 AM ·
camerarenderingtexture2dscreenshot
how can i store a screenshot into android mobile?
question is all ..... i need store screen shot into player mobile. i was tried with some code like .....
public void screenshot() {
Screen_Shot_Count += 1;
PlayerPrefs.SetInt ("ScreenShot", PlayerPrefs.GetInt ("ScreenShot") + 1);
Screen_Shot_File_Name = Application.persistentDataPath + "/Screenshot_" + Screen_Shot_Count + System.DateTime.Now.ToString ("__yyyy-MM-dd") + ".png";
Application.CaptureScreenshot(Screen_Shot_File_Name);
string Origin_Path = System.IO.Path.Combine("", Screen_Shot_File_Name);
string Path = "D:/screenShots/screenshot_"+PlayerPrefs.GetInt("ScreenShot")+".png";
System.IO.File.Move(Origin_Path,Path);
}
the above code is 100% working in system. now i need give a path related to mobile that how can i give.that how can i do?
thanks.
Comment