# ObjectSelectorSearchContext

> A search context implementation for ObjectSelector search engines. All methods that are called on an ObjectSelector search engine, and expect a ISearchContext, receive an object of this type.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.SearchService](/engine/6000.7/script-reference/unityeditor/searchservice.md)
* **Assembly:** UnityEditor.CoreModule
* **Implements:** [ISearchContext](/engine/6000.7/script-reference/unityeditor/searchservice/isearchcontext.md)

```csharp
public class ObjectSelectorSearchContext : ISearchContext
```

## Properties

| Property                                                                                                                                | Description                                                                                                                                                                                                           |
| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [allowBuiltinResources](/engine/6000.7/script-reference/unityeditor/searchservice/objectselectorsearchcontext/allowbuiltinresources.md) | Shows or hides built-in resources.                                                                                                                                                                                    |
| [allowedEntityIds](/engine/6000.7/script-reference/unityeditor/searchservice/objectselectorsearchcontext/allowedentityids.md)           | IEnumerable of EntityId that contains the EntityIds of objects that the search can include in its results.                                                                                                            |
| [currentObject](/engine/6000.7/script-reference/unityeditor/searchservice/objectselectorsearchcontext/currentobject.md)                 | Identifies the currently selected object.                                                                                                                                                                             |
| [editedObjects](/engine/6000.7/script-reference/unityeditor/searchservice/objectselectorsearchcontext/editedobjects.md)                 | When the object selector is opened from an Inspector, this property indicates which objects are currently being edited.                                                                                               |
| [endSessionModes](/engine/6000.7/script-reference/unityeditor/searchservice/objectselectorsearchcontext/endsessionmodes.md)             | Flags describing the different modes that [EndSession](/engine/6000.7/script-reference/unityeditor/searchservice/isearchenginebase/endsession.md) is in.                                                              |
| [engineScope](/engine/6000.7/script-reference/unityeditor/searchservice/objectselectorsearchcontext/enginescope.md)                     | An enum that identifies the scope of the current search. This property is automatically set to [ObjectSelector.EngineScope](/engine/6000.7/script-reference/unityeditor/searchservice/objectselector/enginescope.md). |
| [guid](/engine/6000.7/script-reference/unityeditor/searchservice/objectselectorsearchcontext/guid.md)                                   | A unique identifier for this search context.                                                                                                                                                                          |
| [requiredTypeNames](/engine/6000.7/script-reference/unityeditor/searchservice/objectselectorsearchcontext/requiredtypenames.md)         | An IEnumerable of strings that contains the type name constraints for this search.                                                                                                                                    |
| [requiredTypes](/engine/6000.7/script-reference/unityeditor/searchservice/objectselectorsearchcontext/requiredtypes.md)                 | An IEnumerable of types that contains the type constraints for this search.                                                                                                                                           |
| [visibleObjects](/engine/6000.7/script-reference/unityeditor/searchservice/objectselectorsearchcontext/visibleobjects.md)               | Indicates which categories of objects are visible in the window. For example, GameObjects, Assets, or both.                                                                                                           |
