x


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.

more ▼

asked Feb 03 '11 at 08:34 AM

cpp_fanatic gravatar image

cpp_fanatic
32 3 4 8

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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");
more ▼

answered Feb 29 '12 at 05:30 AM

KrisCadle gravatar image

KrisCadle
194 1 3 7

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x106

asked: Feb 03 '11 at 08:34 AM

Seen: 838 times

Last Updated: Feb 29 '12 at 07:38 AM