# DrawPresetButton(Rect, Object[])

> Draw a Preset button that opens the default PresetSelector using the targets array.

## Definition

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

```csharp
public static bool DrawPresetButton(Rect rectangle, Object[] targets)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): The [Rect](/engine/6000.5/script-reference/unityengine/rect.md) where the PresetSelector icon is drawn.**** (\[Object\[]]\(/engine/6000.5/script-reference/unityengine/object)): List of objects to which the selected Preset is applied.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
