- Home /
U3DXT screenshot sharing problem
hello there, i recently purchased your ios sdk essentials package and wanted to use take screenshot and share it on facebook. i did exactly the same thing as you have shown on your "How to Capture and Share Screenshots" video. Eveything works fine but there is only one problem in my app: when i hit the take screenshot and share button, the screenshot is all black. and it is the same thing for the shared image on facebook. do you have any idea what might be the problem?
Answer by u3dxt · Feb 13, 2014 at 05:16 PM
Are you referring to this tutorial? http://unity3d.tutsmobile.com/how-to-take-a-screenshot-and-share-it-on-ios/
Which method are you using? OnPostRender or Application.CaptureScreenShot? For OnPostRender, you have to make sure that the script is attached to the appropriate camera. For Application.CaptureScreenShot, you have to make sure the the file is successful written to disk because that call is asynchronous. The sample code takes care of that for you.
Please also try the Application.CaptureScreenShot example with penelope demo from Unity and let me know if there are still issues. Thanks.
thank you for your flash response :)
i used the second way from the link you gave me and it works flawlessly:)
Thank you again
Your answer
![](https://koobas.hobune.stream/wayback/20220613133400im_/https://answers.unity.com/themes/thub/images/avi.jpg)