- Home /
Question by
Vagonn · Feb 07, 2016 at 06:46 AM ·
uiscreenshotscreencapture
Screen Capture of particular UI elements
How can I screenshot particular UI elements?
In my case I need screen capture UI Panel with child objects like UI Text, UI Input and etc.
Please take a look at picture. Thanks in advance
capture.jpg
(41.3 kB)
Comment
Best Answer
Answer by ezio_auditore · Feb 08, 2016 at 02:04 PM
try to use Texture2D.ReadPixels but you will have to figure out a way on how to get the coordinates on the screen that you are interested in capturing depending on what kind of a UI system you are using. This should be relatively easy for the uGUI system.
Also, Application.CaptureScreenshot is easier to use for full screen captures but runtime expensive