# selectorClosedHandler

> Function to call when the advanced Object Selector is closed. Only available during AdvancedObjectSelectorEventType.OpenAndSearch.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.SearchService](/engine/6000.6/script-reference/unityeditor/searchservice.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public Action<Object, bool> selectorClosedHandler { get; }
```

### Remarks

This function takes two parameters: the object that was selected, or null if nothing was selected, and a boolean indicating if the selection was canceled or not.
