# PreferenceItem(string)

> Creates a section in the Settings Window called name and invokes the static function following it for the section's GUI.

## Definition

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

> **Warning:**
>
> **Deprecated.** \[PreferenceItem] is deprecated. Use \[SettingsProvider] instead.

```csharp
public PreferenceItem(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;
