1:截屏代码
//保存图片的路径
string androidPath = "/../../../../DCIM/" + albumName + "/" + screenshotFilename;
string path = Application.persistentDataPath + androidPath;
string pathonly = Path.GetDirectoryName(path);
Directory.CreateDirectory(pathonly);
//Unity自带的截屏方法CaptureScreenshot
Application.CaptureScreenshot(androidPath);
// Application.CaptureScreenshot(path);
&nbs