# VisualElementCaptureEditorExtensions

> Use these extension methods to save the rendered visual content of a VisualElement to disk.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.UIElements](/engine/6000.7/script-reference/unityeditor/uielements.md)
* **Assembly:** UnityEditor

```csharp
public static class VisualElementCaptureEditorExtensions
```

## Static Methods

| Method                                                                                                                      | Description                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [CaptureToPNG](/engine/6000.7/script-reference/unityeditor/uielements/visualelementcaptureeditorextensions/capturetopng.md) | Renders the element's panel, captures the visual content of `element`, and saves it to disk as a PNG file. |
