# SetTextureDirty(IPanel, Texture2D)

> Notifies the dynamic atlas of the panel that the content of the provided texture has changed. If the dynamic atlas contains the texture, it will update it.

## Definition

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

```csharp
public static void SetTextureDirty(this IPanel panel, Texture2D texture)
```

### Parameters

**** (\[IPanel]\(/engine/6000.3/script-reference/unityengine/uielements/ipanel)): The current panel**** (\[Texture2D]\(/engine/6000.3/script-reference/unityengine/texture2d)): The texture whose content has changed.
