Question by
kashif789us · Jan 18, 2016 at 10:11 AM ·
texture2dimagescreenshotscreen.widthscreen.height
Capture screenshot of a Particular Area on screen
Hello. I want to capture the screenshot of a particular UGUI Image showing on the screen. I know screenshot of the whole screen can be captured using
Texture2D tex = new Texture2D(Screen.width,Screen.height); tex.ReadPixels(new Rect(0,0,Screen.width,Screen.height),0,0); tex.Apply();
But I want to capture screenshot of that Image. How can I calculate its rect?
Comment
Your answer
Follow this Question
Related Questions
Hide part of image with a certain color 0 Answers
Image saved to gallery is black 1 Answer
WebTexture is black on device but not in editor 0 Answers
How to convert from RenderTexture to Texture2D to EncodeToPNG? 0 Answers
Solved Webcamtexture 0 Answers