# AddItemFavorite(SearchItem)

> Mark a search item as a favorite.

## Definition

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

```csharp
public static void AddItemFavorite(SearchItem item)
```

### Parameters

**** (\[SearchItem]\(/engine/6000.3/script-reference/unityeditor/search/searchitem)): Item to be marked as a favorite.

### Remarks

Favorite items always show up first in the search view. These items are assigned a very low score, making them ordered first by the system.
