- Home /
Question by
MattSawrey · Mar 09, 2015 at 08:38 PM ·
applicationscreenshotpicture
Taking screenshots on iOS
I'm using the following code to take pictures of my game, and then using Prime 31's plugin to post these pictures to twitter. The pictures aren't showing up though, and I'm not sure why. I'd appreciate any ideas.
void Awake()
{
pictureFilePath = Application.persistentDataPath + "/ScreenShot.png";
}
public void TakePicture()
{
Application.CaptureScreenshot(pictureFilePath);
}
public void PostToTwitter()
{
TakePicture ();
TwitterBinding.showTweetComposer("Test", pictureFilePath, "https://twitter.com/matski53");
}
public void PostToFacebook()
{
TakePicture ();
FacebookBinding.showFacebookComposer("Test", pictureFilePath, "https://twitter.com/matski53");
}
Comment
Your answer
Follow this Question
Related Questions
Why doesn't Application.CaptureScreenshot work in Windows player? 1 Answer
Does Application.CaptureScreenshot leak memory on IOS? 1 Answer
I need to set the path for saving the pictures with an application for Android and IOS 2 Answers
[WP8] Application.CaptureScreenshot() image not shown in gallery 0 Answers