# Update(Texture2D, int, bool)

> Updates the DetailBrushRepresentation's data.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.TerrainTools](/engine/6000.6/script-reference/unityeditor/terraintools.md)
* **Assembly:** UnityEditor

```csharp
public void Update(Texture2D brushTex, int size, bool forceUpdate = false)
```

### Parameters

**** (\[Texture2D]\(/engine/6000.6/script-reference/unityengine/texture2d)): The brush mask.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The size of the brush.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): When the value is true, Unity forces the DetailBrushRepresentation to always update. Otherwise, Unity updates the DetailBrushRepresentation only when the brush mask's texture or size changes.
