# clearColor

> Determines whether the color buffer is cleared before the panel is rendered.

## Definition

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

```csharp
public bool clearColor { get; set; }
```

### Remarks

This is typically used when a RenderTexture is assigned to [PanelSettings.targetTexture](/engine/6000.7/script-reference/unityengine/uielements/panelsettings/targettexture.md). Otherwise, if a camera already clears the color of the render target, avoid redundant clearing to optimize performance.
