- Home /
Question by
cpp_fanatic · Feb 03, 2011 at 08:34 AM ·
screenshot
Download Screenshot
Hello. I know how create a screenshot and upload it (http://unity3d.com/support/documentation/ScriptReference/Texture2D.EncodeToPNG.html).
The task: I have a button and if user clicks on it then my screenshot will been downloaded to his computer.
Comment
Answer by KrisCadle · Feb 29, 2012 at 05:30 AM
You could try an easy way and use OpenURL after you save the screenshot. Just plan out what the name will be and code it so this url finds the screenshot after it's made... I also posted some code here that takes screenshots in a sequence and shows you the last shot... maybe you could adapt it for your use ;)
Application.OpenURL ("http://yourwebsite.com/yourpic.jpg");