- Home /
How to save screenshot then use it as a gui texture?
Hi guys sorry if this has been asked before already...what I'm trying to do is basically save screenshots of the game, then load them into the game again as a gui texture.
However I'm not sure how to save the screenshots using Application.CaptureScreenshot to anywhere other than the default location...further more I cant seem to load the images as a Texture2D (Application.dataPath doesn't seem to work as the images aren't in assets folder).
Does anyone have any good suggestions or pointers?
EDIT: is there a quicker way without going through WWW.texture?
Answer by AliAzin · Aug 17, 2010 at 12:56 PM
You can capture screenshots using CaptureScreenshot, and load it through WWW.texture .
Hope that helps.
Thanks for helping out! Like I said to diabloroxx I won't be using the webplayer so I was wondering if theres a simpler way to do this without using WWW.texture? If not I'll try it out, cheers!
WWW is not for web only, you can use it for local files. But you should use http protocol. like : file://c:/test.unity3d