- Home /
Off Screen GUI, taking a screenshot into a Info style card (Easy :)_)
Hey. A question. i'm trying to great a info (top trumps) style screenshot for our game. I've got the basics up nice and working.
I load in a texture which is the background card, large enough to take a screen grab and the information underneath. I take my screen grab using a render texture and place it accordingly. Making a nice overall texture. The next stage is where i'm stumped. I'm using a yield to make sure my GUI gets included into the screen grab.
But i want to display information that i get from my game. I've tried placing GUI labels as test below what would be the screen dimensions. "new Rect(10, Screen.height + 20, 100, 100);" But the screen grab obviously only gets what's on screen. Is there anyway to record a set amount of information from the whole GUI?
The second part of my question has been asked before here (http://forum.unity3d.com/threads/892...IA-PHP-or-Perl) but no further answer was forth coming so i ask for a fuller answer for those who know.
Our game is web browser based, for the test i've been using pc build settings to get a result, but long term i want to save the screenshot to the server so players can access them. All i need is an example of the perl, the example given didn't help much, i have zero experience with Perl, softwizz was kind enough to give a link, but i just can't get my head around how to do it with a unity script. So any help on this is appreciated.
I've attached the script i used, plus the original texture. Any questions please ask.
Thanks for any help.
Kyle.
Answer by KyleHatch · Jan 27, 2012 at 05:10 PM
Go here for partial answer.
http://forum.unity3d.com/threads/119286-Off-Screen-GUI-Screen-grab-top-trumps?p=813123#post813123
The second part of my problem i've still not solved. I still can't get it to my server. The c# code seems fine, it's the perl, so if anyone got any ideas on that, i'd be appreciative.
Your answer
Follow this Question
Related Questions
Capture screenshot to texture, memory issue 1 Answer
Why do I have to click GUI Menu twice to start in Web player? 0 Answers
(IMPORTANT!)How to make a high resolution screenshot including GUI? 1 Answer
GUI off camera when building for web player 0 Answers
I used the eval() function on web player 0 Answers