| Parameter | Description |
|---|---|
| element | The element to capture. It must belong to a panel. |
RenderTexture A new RenderTexture scaled according to the panel. The caller owns the returned texture and is responsible for releasing it with RenderTexture.Release.
Renders the element's panel and captures the visual content of into a new RenderTexture sized to the element's pixel bounds.
This method repaints the whole panel before it captures content.