# ResetDefaults(Terrain, int)

> Initializes the mesh detail wizard's defaults.

## Definition

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

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

### Parameters

**** (\[Terrain]\(/engine/6000.6/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 mesh detail to initialize the detail mesh wizard using the settings of the selected detail.
