# ResetRenderer(IPanel)

> Resets the renderer of the panel. Releases all meshes, rendering commands, and pools owned by the renderer.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public static void ResetRenderer(this IPanel panel)
```

### Parameters

**** (\[IPanel]\(/engine/6000.6/script-reference/unityengine/uielements/ipanel)):&#x20;

### Remarks

Call this method to force a defragmentation and reordering of mesh memory. This can potentially reduce draw calls and memory usage. Use sparingly, such as during Scene loading or for testing.
