# SetAsDefault(Preset)

> Sets the Preset as the default for its target type in the project.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use SetDefaultPresetsForType instead.

```csharp
public static bool SetAsDefault(Preset preset)
```

### Parameters

**** (\[Preset]\(/engine/6000.3/script-reference/unityeditor/presets/preset)): The Preset asset to set as the default.

### Returns

| Type                                                          | Description                                                                        |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the Preset is successfully set as the default, or false otherwise. |
