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

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