# Last()

> Gets the last selected item in the selection.

## Definition

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

```csharp
public SearchItem Last()
```

### Returns

| Type                                                                           | Description                                                             |
| ------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| [SearchItem](/engine/6000.6/script-reference/unityeditor/search/searchitem.md) | Last selected item in selection. Returns null if no items are selected. |
