# ResetDefaults(Terrain, int)

> Initializes the texture detail wizard's defaults.

## Definition

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

```csharp
public void ResetDefaults(Terrain terrain, int index)
```

### Parameters

**** (\[Terrain]\(/engine/6000.0/script-reference/unityengine/terrain)): The Terrain object.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The detail's index.

### Remarks

Call this method when adding or editing a texture detail to initialize the detail texture wizard using the settings of the selected detail.
