|
I am trying to take a screenshot (with GUI controls shown on screen) whilst in web player and put the screenshot as a Texture2D I know that Application.CaptureScreenshot("Screenshot.png") does not work from inside the web player and Texture2D.ReadPixels() doesn't render any GUI controls. Does anyone have any idea how to do this?
(comments are locked)
|
|
Taken from an example from the docs: http://unity3d.com/support/documentation/ScriptReference/WWWForm.html texture2D.ReadPixels() does not work. please read my question before answering it
Feb 22 '11 at 03:29 PM
Hugh
The secret here is the yield WaitForEndOfFrame; This will allow the GUI to be rendered first, allowing ReadPixels() to catch the gui
Feb 22 '11 at 06:54 PM
chief1234
Thank you, it works perfectly :)
Mar 02 '11 at 11:10 AM
Hugh
(comments are locked)
|
